Sha256: 85467961e3d57894d7c45064e423fe89053a3456cb5fbb12a77b743ba78e33c7
Contents?: true
Size: 908 Bytes
Versions: 22
Compression:
Stored size: 908 Bytes
Contents
import React from 'react'; import { storiesOf } from '@storybook/react'; import { withKnobs, number, select } from '@storybook/addon-knobs'; import { action } from '@storybook/addon-actions'; import { withCardsDecorator } from '../../../../../../../stories/decorators'; import { TASKS_DASHBOARD_AVAILABLE_QUERY_STATES } from '../../../../TasksDashboardConstants'; import ScheduledTasksCard from './ScheduledTasksCard'; storiesOf('TasksDashboard/TasksCardsGrid', module) .addDecorator(withKnobs) .addDecorator(withCardsDecorator) .add('ScheduledTasksCard', () => { const selectState = select( 'query.state', { ...TASKS_DASHBOARD_AVAILABLE_QUERY_STATES, NONE: 'none' }, 'none' ); return ( <ScheduledTasksCard data={number('data', 1)} query={{ state: selectState, }} updateQuery={action('updateQuery')} /> ); });
Version data entries
22 entries across 22 versions & 1 rubygems