File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 11import React from 'react'
22import { storiesOf } from '@storybook/react'
3-
43import octicons from 'octicons'
54import SVGInline from 'react-svg-inline'
65
@@ -13,14 +12,16 @@ const Octicon = (props) => {
1312 }
1413}
1514
16- const sizes = [ 64 , 32 , 16 ]
15+ const story = storiesOf ( 'Octicons' , module )
1716
18- storiesOf ( 'Octicons' , module )
19- . add ( 'test' , ( ) => {
20- const name = 'beaker'
17+ Object . keys ( octicons ) . forEach ( name => {
18+ story . add ( name , ( ) => {
2119 return (
22- < div > { sizes . map ( ( size , i ) => (
23- < Octicon name = { name } width = { size } height = { size } key = { i } />
24- ) ) } </ div >
20+ < div >
21+ < Octicon name = { name } height = "64" />
22+ < Octicon name = { name } height = "32" />
23+ < Octicon name = { name } height = "16" />
24+ </ div >
2525 )
2626 } )
27+ } )
You can’t perform that action at this time.
0 commit comments