diff --git a/modules/primer-avatars/stories.js b/modules/primer-avatars/stories.js index d6b8233f..e043156d 100644 --- a/modules/primer-avatars/stories.js +++ b/modules/primer-avatars/stories.js @@ -1,117 +1,10 @@ import React from 'react' import { storiesOf } from '@storybook/react' +import storiesFromMarkdown from '../../.storybook/lib/storiesFromMarkdown' -storiesOf('Avatars', module) -.add('avatar', () => ( - Uncle Cat -)) -.add('avatar-small', () => ( - -)) -.add('avatar-parent-child', () => ( -
-
- - Child cat -
-
-)) -.add('avatar-stack', () => ( -
-
- Uncle Cat - Uncle Cat - Uncle Cat -
-
+const stories = storiesOf('Avatars', module) -)) -.add('AvatarStack', () => ( -
-
-
- Uncle Cat - Uncle Cat -
- Uncle Cat - Uncle Cat - Uncle Cat -
-
-
-
- Uncle Cat - Uncle Cat -
-
-
-
- Uncle Cat - Uncle Cat -
- Uncle Cat - Uncle Cat - Uncle Cat -
-
-
-
- Uncle Cat - Uncle Cat -
-
-
-)) -.add('AvatarStack on blue background', () => ( -
-
-
- - @github - -
-
-
-
- Uncle Cat - Uncle Cat -
-
-
-)) -.add('CircleBadge--small', () => ( -
- - - -
-)) -.add('CircleBadge--medium', () => ( -
- - - -
-)) -.add('CircleBadge--large', () => ( -
- - - -
-)) -.add('DashedConnection', () => ( -
- -
-)) +storiesFromMarkdown(require.context('.', true, /\.md$/)) + .forEach(({title, story}) => { + stories.add(title, story) + })