Sha256: a99ebad689d5aa9481155c85f9eecd1d39d37b5ca9119bd0c2636c40d053f82f
Contents?: true
Size: 864 Bytes
Versions: 51
Compression:
Stored size: 864 Bytes
Contents
import React from 'react'; import { number, select, action } from '@theforeman/stories'; import { withCardsDecorator } from '../../../../../../../stories/decorators'; import { TASKS_DASHBOARD_AVAILABLE_QUERY_STATES } from '../../../../TasksDashboardConstants'; import ScheduledTasksCard from './ScheduledTasksCard'; export default { title: 'TasksDashboard/TasksCardsGrid/Cards/ScheduledTasksCard', component: ScheduledTasksCard, decorators: [withCardsDecorator], parameters: { centered: { disable: true }, }, }; export const Basic = () => { 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
51 entries across 51 versions & 1 rubygems