Skip to content

Commit

Permalink
NONE) fix: fix type err in storybook select (#87)
Browse files Browse the repository at this point in the history
* fix: fix type err and update ver

* fix: fix storybook
  • Loading branch information
dohui-son authored Jun 18, 2024
1 parent 3878e3e commit 098e0d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"author": "Corca <[email protected]>",
"description": "Design System for Corca, Inc.",
"private": false,
"version": "0.0.20",
"version": "0.0.21",
"type": "module",
"packageManager": "[email protected]",
"main": "dist/index.js",
Expand Down
8 changes: 4 additions & 4 deletions src/stories/Select.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function Default() {
width={400}
selectedValue={defaultValue}
onSelect={value => {
setDefaultValue(value);
setDefaultValue(value as string);
}}
options={BASIC}
/>
Expand All @@ -73,7 +73,7 @@ export function Default() {
width={400}
selectedValue={createValue}
onSelect={value => {
setCreateValue(value);
setCreateValue(value as string);
}}
options={selectItems}
onCreate={v => {
Expand Down Expand Up @@ -136,14 +136,14 @@ export function Default() {
label="Left Icon 있는 input 창"
width={150}
selectedValue={selectItemWithIcon}
onSelect={value => setSelectItemWithIcon(value)}
onSelect={value => setSelectItemWithIcon(value as string)}
options={[{ label: '공백이없이라벨이긴예시', value: 'long' }, ...BASIC]}
/>
<MultiSelect
label="Searchable Multi Select"
description="Searchable and not searchable is available."
selectedValues={selectedItems}
onSelect={value => setSelectedItems(prev => [...prev, value])}
onSelect={value => setSelectedItems(prev => [...prev, value as string])}
onDeleteSingle={value => setSelectedItems(prev => prev.filter(v => v !== value))}
onDeleteAll={() => setSelectedItems([])}
options={[
Expand Down

0 comments on commit 098e0d3

Please sign in to comment.