1234567891011121314151617181920212223242526272829 |
- import React from 'react';
- import { storiesOf } from '@storybook/react';
- import { action } from '@storybook/addon-actions';
- import { withInfo } from "@storybook/addon-info";
- import { withKnobs, number, boolean, select } from "@storybook/addon-knobs";
- import { addReadme } from 'storybook-readme';
-
- import { BarftEditorPage } from '@components/Editor/BraftEditor';
-
- import EditorData from './data/articleData.json';
-
- const stories = storiesOf('Editor', module);
- stories.addDecorator((storyFn) => <div style={{padding: "0px 40px"}}>{storyFn()}</div>)
- stories.addDecorator(withKnobs);
- stories.addDecorator(withInfo);
- stories.addDecorator(addReadme);
-
- stories.add(
- 'BraftEditor',
- () => (
- <BarftEditorPage value={EditorData.text} />
- ),
- {
- info: {
- inline: true,
- },
- notes: 'A very simple example of addon notes',
- }
- )
|