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