Skip to content

Commit

Permalink
feat: add stable hash story
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Mar 13, 2018
1 parent be13c1b commit c0367ee
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .storybook/atoms.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const className = rule({
bd: '1px solid red'
}, 'atoms');

storiesOf('Atoms', module)
storiesOf('Addon: atoms', module)
.add('Default', () =>
h('div', {className}, 'Red')
)
19 changes: 19 additions & 0 deletions .storybook/stable.stories.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import {createElement as h} from 'react';
import {storiesOf} from '@storybook/react';
const {action} = require('@storybook/addon-actions');
const {linkTo} = require('@storybook/addon-links');
const {create} = require('../lib');
const {addon} = require('../addon/stable');

const renderer = create(h);
addon(renderer);
const {rule} = renderer;

const className = rule({
bd: '1px solid red'
}, 'atoms');

storiesOf('Addon: stable hash', module)
.add('Default', () =>
h('div', {className}, 'Red')
)

0 comments on commit c0367ee

Please sign in to comment.