Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/src/components/mypage/CategoryTab/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Category from "./Category";
import Category from "@components/mypage/CategoryTab/Category";

interface TabProps {
tab: "myList" | "savedList";
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/mypage/QuestionList/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useGetMyQuestionList } from "@/hooks/api/useGetMyQuestionList";
import QuestionItem from "./QuestionItem";
import QuestionItem from "@components/mypage/QuestionList/QuestionItem";
import { useGetScrapQuestionList } from "@/hooks/api/useGetScrapQuestionList";

interface ListProps {
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/hooks/session/useSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ export const useSession = (sessionId: string) => {

const { requestChangeIndex, stopStudySession, startStudySession } = useStudy(
socket,
isHost,
sessionId,
setRoomMetadata,
setPeers
roomMetadata
);

useSocketEvents({
Expand Down
9 changes: 8 additions & 1 deletion frontend/src/hooks/session/useStudy.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import { STUDY_EMIT_EVENT } from "@/constants/WebSocket/StudyEvent.ts";
import { Socket } from "socket.io-client";
import { RoomMetadata } from "@hooks/type/session";

const useStudy = (socket, isHost, roomMetadata, sessionId) => {
const useStudy = (
socket: Socket | null,
isHost: boolean,
sessionId: string,
roomMetadata: RoomMetadata | null
) => {
const requestChangeIndex = (
type: "next" | "prev" | "current" | "move",
index?: number
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/MyPage/view/Profile.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { MdEdit } from "react-icons/md";
import ProfileIcon from "@components/MyPage/ProfileIcon";
import ProfileIcon from "@components/mypage/ProfileIcon";

interface UseModalReturn {
dialogRef: React.RefObject<HTMLDialogElement>;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/MyPage/view/ProfileEditModal.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import TitleInput from "@components/common/TitleInput";
import { IoMdClose } from "react-icons/io";
import ButtonSection from "@components/MyPage/ButtonSection";
import ButtonSection from "@components/mypage/ButtonSection";
import useAuth from "@hooks/useAuth";

interface UseModalReturn {
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/MyPage/view/QuestionSection.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useState } from "react";
import CategoryTap from "@components/MyPage/CategoryTab";
import QuestionList from "@components/MyPage/QuestionList";
import CategoryTap from "@components/mypage/CategoryTab";
import QuestionList from "@components/mypage/QuestionList";
import Pagination from "@components/common/Pagination";
import { useGetMyQuestionList } from "@/hooks/api/useGetMyQuestionList";
import { useGetScrapQuestionList } from "@/hooks/api/useGetScrapQuestionList";
Expand Down