Skip to content

Commit

Permalink
Fix code samples for decorators in Intro to Addons docs
Browse files Browse the repository at this point in the history
  • Loading branch information
trevoreyre committed Jun 9, 2017
1 parent 39b4c03 commit 18bc011
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/pages/addons/introduction/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ import Button from './button';
const styles = {
textAlign: 'center',
};
const CenterDecorator = ({ children }) => (
const CenterDecorator = (storyFn) => (
<div style={styles}>
{ children }
{ storyFn() }
</div>
);

Expand All @@ -85,9 +85,9 @@ import Welcome from './welcome';
const styles = {
textAlign: 'center',
};
const CenterDecorator = ({ children }) => (
const CenterDecorator = (storyFn) => (
<div style={styles}>
{ children }
{ storyFn() }
</div>
);
addDecorator(CenterDecorator);
Expand Down

0 comments on commit 18bc011

Please sign in to comment.