Skip to content

Commit

Permalink
feat: Select 컴포넌트 스토리 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
heonq committed Oct 26, 2024
1 parent 5bf8b12 commit 65579f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stories/Select.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ export default {
tags: ["autodocs"],
};

const Template = (props) => <Select {...props}></Select>;
const Template = (args) => <Select {...args} />;

export const Default = Template.bind({});

Default.decorators = [
(Story) => {
const options = ["최신순", "좋아요순"];
const [selectedOption, setOption] = useState(options[0]);
return <Story args={{ selectedOption, options, setOption }} />;
return <Story args={{ selectedOption, options, setOption, screenWidth: 1200 }} />;
},
];

0 comments on commit 65579f0

Please sign in to comment.