Skip to content

Commit

Permalink
feat: 바뀐 RoomInfo 데이터 형식에 맞게 storybook 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
00kang committed Oct 15, 2024
1 parent 19d022c commit 7a3bb01
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions frontend/src/components/shared/roomCard/RoomCard.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ import roomInfo from "@/mocks/mockResponse/roomInfo.json";

const sampleRoomList = {
...roomInfo,
roomStatus: roomInfo.roomStatus as "OPEN" | "CLOSE" | "PROGRESS",
roomStatus: roomInfo.roomStatus as "OPEN" | "CLOSE" | "PROGRESS" | "FAIL",
participationStatus: roomInfo.participationStatus as
| "NOT_PARTICIPATED"
| "PARTICIPATED"
| "MANAGER",
| "MANAGER"
| "PULL_REQUEST_NOT_SUBMITTED",
memberRole: roomInfo.memberRole as "BOTH" | "REVIEWER" | "REVIEWEE" | "NONE",
message: "FAIL시 오류 메시지",
} satisfies RoomInfo;

const meta = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ import roomInfo from "@/mocks/mockResponse/roomInfo.json";

const sampleRoomList = {
...roomInfo,
roomStatus: roomInfo.roomStatus as "OPEN" | "CLOSE" | "PROGRESS",
roomStatus: roomInfo.roomStatus as "OPEN" | "CLOSE" | "PROGRESS" | "FAIL",
participationStatus: roomInfo.participationStatus as
| "NOT_PARTICIPATED"
| "PARTICIPATED"
| "MANAGER",
| "MANAGER"
| "PULL_REQUEST_NOT_SUBMITTED",
memberRole: roomInfo.memberRole as "BOTH" | "REVIEWER" | "REVIEWEE" | "NONE",
message: "FAIL시 오류 메시지",
} satisfies RoomInfo;

const meta: Meta<typeof RoomCardModal> = {
Expand Down
6 changes: 4 additions & 2 deletions frontend/src/components/shared/roomList/RoomList.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ import roomInfos from "@/mocks/mockResponse/roomInfos.json";

const sampleRoomList = roomInfos.rooms.map((roomInfo) => ({
...roomInfo,
roomStatus: roomInfo.roomStatus as "OPEN" | "CLOSE" | "PROGRESS",
roomStatus: roomInfo.roomStatus as "OPEN" | "CLOSE" | "PROGRESS" | "FAIL",
participationStatus: roomInfo.participationStatus as
| "NOT_PARTICIPATED"
| "PARTICIPATED"
| "MANAGER",
| "MANAGER"
| "PULL_REQUEST_NOT_SUBMITTED",

memberRole: roomInfo.memberRole as "BOTH" | "REVIEWER" | "REVIEWEE" | "NONE",
message: "FAIL시 오류 메시지",
})) satisfies RoomInfo[];

const meta = {
Expand Down

0 comments on commit 7a3bb01

Please sign in to comment.