mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-17 05:02:23 +08:00
Add required click handler to prevent errors.
This commit is contained in:
parent
08b0bdafa6
commit
a1470f6d86
@ -105,7 +105,8 @@ storiesOf('Addon Notes', module)
|
||||
withNotes({ text: 'My notes on some button' })(() => ({
|
||||
component: Button,
|
||||
props: {
|
||||
text: 'Notes on some Button'
|
||||
text: 'Notes on some Button',
|
||||
onClick: () => {},
|
||||
}
|
||||
}))
|
||||
)
|
||||
@ -122,7 +123,8 @@ storiesOf('Addon Notes', module)
|
||||
})(() => ({
|
||||
component: Button,
|
||||
props: {
|
||||
text: 'Notes with HTML'
|
||||
text: 'Notes with HTML',
|
||||
onClick: () => {},
|
||||
}
|
||||
}))
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user