Sha256: 1002e4e481fc16feef926889f0fbafa806402d86ce6caf25a15330da8b9be4a7

Contents?: true

Size: 764 Bytes

Versions: 22

Compression:

Stored size: 764 Bytes

Contents

import React from 'react';
import { storiesOf } from '@storybook/react';
import { withKnobs, object } from '@storybook/addon-knobs';
import { action } from '@storybook/addon-actions';
import { Grid } from 'patternfly-react';

import { TASKS_DASHBOARD_AVAILABLE_TIMES } from '../../TasksDashboardConstants';
import TasksLabelsRow from './TasksLabelsRow';

storiesOf('TasksDashboard/TasksLabelsRow', module)
  .addDecorator(withKnobs)
  .addDecorator(storyFn => <Grid style={{ padding: 40 }}>{storyFn()}</Grid>)
  .add('TasksLabelsRow', () => (
    <TasksLabelsRow
      query={object('query', {
        state: 'running',
        mode: 'last',
        time: TASKS_DASHBOARD_AVAILABLE_TIMES.H24,
      })}
      deleteQueryKey={action('deleteQueryKey')}
    />
  ));

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
foreman-tasks-0.15.3 webpack/ForemanTasks/Components/TasksDashboard/Components/TasksLabelsRow/TasksLabelsRow.stories.js
foreman-tasks-0.15.2 webpack/ForemanTasks/Components/TasksDashboard/Components/TasksLabelsRow/TasksLabelsRow.stories.js