Skip to content

Commit

Permalink
storybook: throw dummy props
Browse files Browse the repository at this point in the history
  • Loading branch information
algoORgoal committed May 10, 2024
1 parent 903ef95 commit 4be11b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions stories/BoothItem.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ type Story = StoryObj<typeof meta>;
export const Default: Story = {
args: {
name: "컴공주점",
editButton: <BoothEditButton />,
deleteButton: <BoothDeleteButton />,
editButton: <BoothEditButton boothId={0} />,
deleteButton: <BoothDeleteButton boothId={0} />,
switchButton: <BoothSwitchButton />,
},
};
Expand All @@ -28,8 +28,8 @@ export const WithOptional: Story = {
name: "컴공주점",
description: "컴퓨터공학부 전용 부스",
location: "청심대 앞",
editButton: <BoothEditButton />,
deleteButton: <BoothDeleteButton />,
editButton: <BoothEditButton boothId={0} />,
deleteButton: <BoothDeleteButton boothId={0} />,
switchButton: <BoothSwitchButton />,
},
};
3 changes: 2 additions & 1 deletion stories/SimpleSetBoothDescription.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { BoothCategory } from "@/src/shared/lib/types";
import { useBoothDraftStore } from "@/src/shared/model/provider/booth-draft-store-provider";
import { OverviewSetBoothDescription } from "@/src/widgets/add-booth";
import { Meta, StoryObj } from "@storybook/react";
Expand All @@ -16,7 +17,7 @@ const meta = {
]);
useEffect(() => {
reset();
editCategory("bar");
editCategory(BoothCategory.BAR);
editName("컴퓨터공학부 주점");
}, [reset, editCategory, editName]);

Expand Down

0 comments on commit 4be11b6

Please sign in to comment.