webpack/ForemanTasks/Components/TaskDetails/TaskDetails.stories.js in foreman-tasks-1.0.0 vs webpack/ForemanTasks/Components/TaskDetails/TaskDetails.stories.js in foreman-tasks-1.0.1
- old
+ new
@@ -1,5 +1,9 @@
import React from 'react';
-import { storiesOf } from '@storybook/react';
import TaskDetails from './TaskDetails';
-storiesOf('TaskDetails', module).add('TaskDetails', () => <TaskDetails />);
+export default {
+ title: 'TaskDetails',
+ component: TaskDetails,
+};
+
+export const Basic = () => <TaskDetails />;