diff --git a/src/App.stories.tsx b/src/App.stories.tsx index aaf118f..9edacd5 100644 --- a/src/App.stories.tsx +++ b/src/App.stories.tsx @@ -3,25 +3,28 @@ import React from "react"; import App from "./App"; -const meta: Meta = { +type Props = React.ComponentProps; + +const meta: Meta = { title: "App", - component: App + args: { + descriptions: ["Test"], + }, + component: App, }; export default meta; -const Template: Story> = (args) => ( - -); +const Template: Story = (args) => ; export const Default = Template.bind({}); Default.args = { title: "Title", - descriptions: ["Hello", "Description"] + descriptions: ["Hello", "Description"], }; export const NgPattern = Template.bind({}); // expect type error NgPattern.args = { - title: "Title" + title: "Title", // descriptions: [], };