26 lines
793 B
JavaScript
Raw Normal View History

2016-07-06 18:10:36 -03:00
import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
2016-07-06 18:10:36 -03:00
import { FindBar } from '../FindBar';
2016-07-06 18:10:36 -03:00
const commands = [
2016-07-06 18:51:57 -03:00
{ pattern: 'Create new Collection(:collectionName)' },
{ pattern: 'Create new Post(:postName)' },
{ pattern: 'Create new Article(:articleName)' },
{ pattern: 'Create new FAQ item(:faqName as FAQ item name)' },
{ pattern: 'Add news item(:headline)' },
{ pattern: 'Add new User(:userName as User name)' },
2016-07-07 12:04:19 -03:00
{ pattern: 'Search(:searchTerm as what?)' },
{ pattern: 'Go to Settings' },
2016-07-06 18:10:36 -03:00
{ pattern: 'Find(:seachTerm as what?)' },
2016-07-06 18:51:57 -03:00
{ pattern: '(:searchTerm as Find...)', token:'Find' }
2016-07-06 18:10:36 -03:00
];
storiesOf('FindBar', module)
.add('Default View', () => (
<FindBar
commands={commands}
dispatch={action('DISPATCH')}
2016-07-06 18:10:36 -03:00
/>
));