mirror of
https://github.com/primer/css.git
synced 2025-01-01 18:53:34 +03:00
simplify
This commit is contained in:
parent
1b6c2bdc9b
commit
50c635566a
@ -5,6 +5,6 @@ import storiesFromMarkdown from '../../.storybook/lib/storiesFromMarkdown'
|
||||
const stories = storiesOf('Breadcrumb', module)
|
||||
|
||||
storiesFromMarkdown(require.context('.', true, /\.md$/))
|
||||
.forEach((story, i) => {
|
||||
stories.add(`story #${i + 1}`, () => story)
|
||||
.forEach(({story, title}) => {
|
||||
stories.add(title, () => story)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user