Skip to content

Commit

Permalink
chore: use action for select
Browse files Browse the repository at this point in the history
  • Loading branch information
maasencioh committed Nov 1, 2020
1 parent 2fd3505 commit d39d1b2
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions stories/wafer.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,11 @@ export default {
defaultValue: '7',
control: 'number',
},
onSelect: { action: 'onSelect' },
},
} as Meta;

export function Control(props: WaferProps) {
const pickedItems = [{ index: '3' }, { index: '5', label: 'owner' }];
return (
<Wafer
pickedItems={pickedItems}
size={320}
// eslint-disable-next-line no-console
onSelect={console.log}
{...props}
/>
);
return <Wafer pickedItems={pickedItems} size={320} {...props} />;
}

0 comments on commit d39d1b2

Please sign in to comment.