Sha256: 96d8cfa85c782d00af461e967f7e693506183fae10dae0a535a56a226978d639
Contents?: true
Size: 865 Bytes
Versions: 22
Compression:
Stored size: 865 Bytes
Contents
import React from 'react'; import { storiesOf } from '@storybook/react'; import { withKnobs, number, text, select } from '@storybook/addon-knobs'; import { action } from '@storybook/addon-actions'; import { TASKS_DONUT_CHART_FOCUSED_ON_OPTIONS_ARRAY } from './TasksDonutChartConstants'; import TasksDonutChart from './TasksDonutChart'; storiesOf('TasksDashboard/TasksCardsGrid', module) .addDecorator(withKnobs) .add('TasksDonutChart', () => ( <TasksDonutChart last={number('last', 3)} older={number('older', 5)} time={text('time', '24h')} focusedOn={select( 'focusedOn', TASKS_DONUT_CHART_FOCUSED_ON_OPTIONS_ARRAY, TasksDonutChart.defaultProps.focusedOn )} onTotalClick={action('onTotalClick')} onLastClick={action('onLastClick')} onOlderClick={action('onOlderClick')} /> ));
Version data entries
22 entries across 22 versions & 1 rubygems