Skip to content

Commit

Permalink
docs(storybook): update ShowComputedStyles import
Browse files Browse the repository at this point in the history
  • Loading branch information
larrybotha committed Jul 30, 2018
1 parent b11d568 commit 8b66f41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions storybook/stories/show-computed-styles/as-children.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React from 'react';

import ShowComputedStyle from '../../../src/ShowComputedStyle';
import ShowComputedStyles from '../../../src/ShowComputedStyles';

const ShowComputedStyleStory = () => (
<ShowComputedStyle stylesToCompute={['color', 'font-size']}>
<ShowComputedStyles stylesToCompute={['color', 'font-size']}>
{({computedStyles}) => (
<div style={{fontSize: '11px', color: 'skyblue'}}>{JSON.stringify(computedStyles)}</div>
)}
</ShowComputedStyle>
</ShowComputedStyles>
);

export default ShowComputedStyleStory;
6 changes: 3 additions & 3 deletions storybook/stories/show-computed-styles/as-render-prop.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import React from 'react';

import ShowComputedStyle from '../../../src/ShowComputedStyle';
import ShowComputedStyles from '../../../src/ShowComputedStyles';

const ShowComputedStyleStory = () => (
<ShowComputedStyle
<ShowComputedStyles
stylesToCompute={['color', 'font-size']}
render={({computedStyles}) => (
<div style={{fontSize: '11px', color: 'skyblue'}}>{JSON.stringify(computedStyles)}</div>
)}
/>
);

export default ShowComputedStyleStory;
export default ShowComputedStyleStorys;

0 comments on commit 8b66f41

Please sign in to comment.