Skip to content

Commit bf8b913

Browse files
committed
suffer from your worst design desicions
1 parent db55d7f commit bf8b913

File tree

16 files changed

+27
-27
lines changed

16 files changed

+27
-27
lines changed

web/api/chat/chat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import type {
1111
UserID,
1212
} from "~/common/types";
1313
import { ErrUnauthorized, credFetch } from "~/firebase/auth/lib";
14-
import endpoints from "~/internal/endpoints";
14+
import endpoints from "../internal/endpoints";
1515

1616
/* TODO
1717
import { UserID } from "~/common/types";

web/api/chat/hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { z } from "zod";
66
import type { Message, RoomOverview } from "~/common/types";
77
import { MessageSchema, RoomOverviewSchema } from "~/common/zod/schemas";
88
import { type Hook, useCustomizedSWR } from "~/hooks/useCustomizedSWR";
9-
import type { UserID } from "~/internal/endpoints";
9+
import type { UserID } from "../internal/endpoints";
1010
// import type { Hook } from "~/share/types";
1111
import * as chat from "./chat";
1212

web/components/chat/Room.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ListItem, Stack, Typography } from "@mui/material";
22
import type { DMOverview } from "~/common/types";
3-
import UserAvatar from "~/human/avatar";
3+
import UserAvatar from "../human/avatar";
44

55
type Props = {
66
room: DMOverview;

web/components/chat/RoomHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import ArrowBackIcon from "@mui/icons-material/ArrowBack";
22
import { Box, Button, Typography } from "@mui/material";
33
import Link from "next/link";
44
import type { DMOverview } from "~/common/types";
5-
import UserAvatar from "~/human/avatar";
5+
import UserAvatar from "../human/avatar";
66
type Props = {
77
room: DMOverview;
88
};

web/components/chat/RoomList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { Box, List, Typography } from "@mui/material";
44
import { useRouter } from "next/navigation";
55
import type { RoomOverview } from "~/common/types";
6-
import { HumanListItem } from "~/human/humanListItem";
6+
import { HumanListItem } from "../human/humanListItem";
77

88
type RoomListProps = {
99
roomsData: RoomOverview[] | null;

web/components/chat/RoomWindow.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import type {
1515
} from "~/common/types";
1616
import type { Content } from "~/common/zod/types";
1717
import { getIdToken } from "~/firebase/auth/lib";
18-
import Dots from "~/common/Dots";
19-
import { socket } from "~/data/socket";
18+
import Dots from "../common/Dots";
19+
import { socket } from "../data/socket";
2020
import { MessageInput } from "./MessageInput";
2121
import { RoomHeader } from "./RoomHeader";
2222

web/components/common/modal/ModalProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { styled } from "@mui/system";
33
import { type ReactNode, createContext, useContext, useState } from "react";
44
import { useMyID } from "~/api/user";
55
import type { User } from "~/common/types";
6-
import { Card } from "~/Card";
6+
import { Card } from "../../Card";
77

88
const Overlay = styled(Box)({
99
position: "fixed",

web/components/config/PhotoPreview.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import {
77
useState,
88
} from "react";
99
import { uploadImage } from "~/api/image";
10-
import { ImageCropper } from "~/ImageCropper";
11-
import { photo } from "~/data/photo-preview";
10+
import { ImageCropper } from "../ImageCropper";
11+
import { photo } from "../data/photo-preview";
1212

1313
type ButtonProps = {
1414
text?: string;

web/components/course/EditableCoursesTable/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { useEffect, useState } from "react";
22

33
import courseApi from "~/api/course";
44
import type { Course, Day, UserID } from "~/common/types";
5-
import FullScreenCircularProgress from "~/common/FullScreenCircularProgress";
6-
import CoursesTableCore from "~/components/CoursesTableCore";
7-
import SelectCourseDialog from "~/components/SelectCourseDialog";
5+
import FullScreenCircularProgress from "~/components/common/FullScreenCircularProgress";
6+
import CoursesTableCore from "../components/CoursesTableCore";
7+
import SelectCourseDialog from "../components/SelectCourseDialog";
88

99
type Props = {
1010
userId: UserID;

web/components/course/NonEditableCoursesTable/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { useEffect, useState } from "react";
22

33
import courseApi from "~/api/course";
44
import type { Course, UserID } from "~/common/types";
5-
import FullScreenCircularProgress from "~/common/FullScreenCircularProgress";
6-
import CoursesTableCore from "~/components/CoursesTableCore";
5+
import FullScreenCircularProgress from "~/components/common/FullScreenCircularProgress";
6+
import CoursesTableCore from "../components/CoursesTableCore";
77

88
type Props = {
99
userId: UserID;

0 commit comments

Comments
 (0)