Skip to content

Commit

Permalink
update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
danielduan committed Oct 28, 2017
1 parent c753d74 commit dd4857f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,5 +195,4 @@ storiesOf('shared/ProgressBar', module)
<ProgressBar progress={number('progress', 25)}
delay={number('delay', 500)}
/>

));
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,11 @@ storiesOf('Button').add('with custom styles', withInfo({
return stylesheet
}
})(() => <Button label="The Button" onClick={action('onClick')} />))

storiesOf('shared/ProgressBar', module)
.addDecorator(withKnobs)
.add('default style', withInfo('default style')(() => (
<ProgressBar progress={number('progress', 25)}
delay={number('delay', 500)}
/>
)));
7 changes: 3 additions & 4 deletions lib/codemod/src/transforms/update-addon-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,9 @@ export default function transformer(file, api) {
node.callee.property.name = 'add';
node.arguments = [
args[0],
j.callExpression(
j.callExpression(j.identifier('withInfo'), getOptions(args)),
storyComponent
),
j.callExpression(j.callExpression(j.identifier('withInfo'), getOptions(args)), [
storyComponent,
]),
];

return node;
Expand Down

0 comments on commit dd4857f

Please sign in to comment.