simulate redux-thunk
This commit is contained in:
parent
fd8038465e
commit
a0fbf9b767
@ -18,12 +18,14 @@ const style = {
|
|||||||
margin: 20
|
margin: 20
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const dispatch = action('DISPATCH');
|
||||||
|
|
||||||
storiesOf('FindBar', module)
|
storiesOf('FindBar', module)
|
||||||
.add('Default View', () => (
|
.add('Default View', () => (
|
||||||
<div style={style}>
|
<div style={style}>
|
||||||
<FindBar
|
<FindBar
|
||||||
commands={commands}
|
commands={commands}
|
||||||
dispatch={action('DISPATCH')}
|
dispatch={f => f(dispatch)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
));
|
));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user