File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const className = rule({
13
13
bd : '1px solid red'
14
14
} , 'atoms' ) ;
15
15
16
- storiesOf ( 'Atoms ' , module )
16
+ storiesOf ( 'Addon: atoms ' , module )
17
17
. add ( 'Default' , ( ) =>
18
18
h ( 'div' , { className} , 'Red' )
19
19
)
Original file line number Diff line number Diff line change
1
+ import { createElement as h } from 'react' ;
2
+ import { storiesOf } from '@storybook/react' ;
3
+ const { action} = require ( '@storybook/addon-actions' ) ;
4
+ const { linkTo} = require ( '@storybook/addon-links' ) ;
5
+ const { create} = require ( '../lib' ) ;
6
+ const { addon} = require ( '../addon/stable' ) ;
7
+
8
+ const renderer = create ( h ) ;
9
+ addon ( renderer ) ;
10
+ const { rule} = renderer ;
11
+
12
+ const className = rule ( {
13
+ bd : '1px solid red'
14
+ } , 'atoms' ) ;
15
+
16
+ storiesOf ( 'Addon: stable hash' , module )
17
+ . add ( 'Default' , ( ) =>
18
+ h ( 'div' , { className} , 'Red' )
19
+ )
You can’t perform that action at this time.
0 commit comments