Skip to content

Commit d0686f7

Browse files
committed
chore: 스토리북 에러
1 parent dc9ea3e commit d0686f7

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed
Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,29 @@
1-
import ImageInput from "@/app/components/input/file/ImageInput/ImageInput";
1+
import * as React from "react";
2+
import ImageInputPlaceHolder from "@/app/components/input/file/ImageInput/ImageInputPlaceHolder";
23
import { Meta, StoryObj } from "@storybook/react";
34

45
const meta = {
56
title: "Design System/Components/FileInput",
6-
component: ImageInput,
7+
component: ImageInputPlaceHolder,
78
parameters: {
89
layout: "centered",
910
},
10-
} satisfies Meta<typeof ImageInput>;
11+
} satisfies Meta<typeof ImageInputPlaceHolder>;
1112

1213
export default meta;
1314

14-
type Story = StoryObj<typeof ImageInput>;
15+
type Story = StoryObj<typeof ImageInputPlaceHolder>;
1516

1617
export const Upload_Image: Story = {
1718
args: {
18-
name: "uploadImage",
19+
size: "large",
20+
initialImages: [],
21+
onImageUpload: async (file: File) => {
22+
// 스토리북용 mock 함수
23+
return URL.createObjectURL(file);
24+
},
25+
onImagesChange: (images) => {
26+
console.log("Images changed:", images);
27+
},
1928
},
2029
};

0 commit comments

Comments
 (0)