Skip to content

Commit 6b850c2

Browse files
authored
fix: 검색 페이지 api response 타입 수정 (#212)
* fix: roomType 타입 및 params 수정 * fix: rooms 타입 수정 * fix: 빌드 에러 타입 수정 * feat: mockData 타입 수정 * refactor: 모듈 import 경로 수정
1 parent f73a29f commit 6b850c2

File tree

8 files changed

+73
-210
lines changed

8 files changed

+73
-210
lines changed

src/RoomList/components/RoomAccordion.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { clsx } from 'clsx';
22
import { useMoveRoute } from '@/core/hooks';
33
import useHover from '@/core/hooks/useHover';
4-
import { Room } from '@/RoomList/mocks/types/rooms';
4+
import { Room } from '@/core/types';
55
import roomListStyle from '@/RoomList/styles/roomListStyle';
66
import { Accordion, AccordionHeader, AccordionBody } from '@/shared/Accordion';
77
import { RoomSummary } from '@/RoomSummary';
@@ -14,7 +14,7 @@ interface RoomAccordionProps {
1414
}
1515

1616
const RoomAccordion = ({ room }: RoomAccordionProps) => {
17-
const { routine, id } = room;
17+
const { routines, id } = room;
1818
const moveTo = useMoveRoute();
1919
const [hoverRef, hovered] = useHover<HTMLDivElement>();
2020
const keyword = useKeyword();
@@ -48,7 +48,7 @@ const RoomAccordion = ({ room }: RoomAccordionProps) => {
4848
>
4949
<div className="p-4 pt-5">
5050
<RoutineList>
51-
{routine.map(({ routineId, content }) => (
51+
{routines.map(({ routineId, content }) => (
5252
<RoutineItem key={routineId}>
5353
<KeywordText
5454
content={content}

src/RoomList/mocks/totalRooms.ts

Lines changed: 0 additions & 108 deletions
This file was deleted.

src/RoomList/mocks/types/myJoinRoom.d.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/RoomList/mocks/types/rooms.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)