-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#290 Fix deprecated notation of @storybook/addon-info
- Loading branch information
Showing
28 changed files
with
658 additions
and
529 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
import React from 'react'; | ||
import { storiesOf } from '@storybook/react'; | ||
import { action } from '@storybook/addon-actions'; | ||
import { withInfo } from '@storybook/addon-info'; | ||
import { Badge } from '../src/scripts'; | ||
|
||
storiesOf('Badge', module).add( | ||
'Default', | ||
withInfo('Default badge')(() => ( | ||
<Badge onClick={action('click')}>Badge Label</Badge> | ||
)) | ||
() => <Badge onClick={action('click')}>Badge Label</Badge>, | ||
{ info: 'Default badge' } | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import React from 'react'; | ||
import { storiesOf } from '@storybook/react'; | ||
import { action } from '@storybook/addon-actions'; | ||
import { withInfo } from '@storybook/addon-info'; | ||
import { BreadCrumbs, Crumb } from '../src/scripts'; | ||
|
||
storiesOf('BreadCrumbs', module).add( | ||
'Default', | ||
withInfo('Default BreadCrumbs')(() => ( | ||
() => ( | ||
<BreadCrumbs> | ||
<Crumb onClick={action('crumb1#click')}>Parent Entity</Crumb> | ||
<Crumb onClick={action('crumb2#click')}>Parent Record Name</Crumb> | ||
</BreadCrumbs> | ||
)) | ||
), | ||
{ info: 'Default BreadCrumbs' } | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.