mirror of
https://github.com/primer/css.git
synced 2024-12-18 03:31:43 +03:00
simplify octicons story to get it working
This commit is contained in:
parent
367c079913
commit
d91d9cd9f9
@ -1,5 +1,6 @@
|
||||
import React from 'react'
|
||||
import {storiesOf} from '@storybook/react'
|
||||
|
||||
import octicons from 'octicons'
|
||||
import SVGInline from 'react-svg-inline'
|
||||
|
||||
@ -12,13 +13,14 @@ const Octicon = (props) => {
|
||||
}
|
||||
}
|
||||
|
||||
const story = storiesOf('Octicons', module)
|
||||
const sizes = [64, 32, 16]
|
||||
|
||||
Object.keys(octicons).forEach(name => {
|
||||
story.add(name, () => (
|
||||
<div>{sizes.map((size, i) => (
|
||||
<Octicon name={name} width={size} height={size} key={i} />
|
||||
))}</div>
|
||||
))
|
||||
})
|
||||
storiesOf('Octicons', module)
|
||||
.add('test', () => {
|
||||
const name = 'beaker'
|
||||
return (
|
||||
<div>{sizes.map((size, i) => (
|
||||
<Octicon name={name} width={size} height={size} key={i} />
|
||||
))}</div>
|
||||
)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user