import React from 'react'; import {storiesOf} from '@storybook/react'; import {withInfo} from '@storybook/addon-info'; import {select} from '@storybook/addon-knobs'; import IndicatorContainer, {Indicators} from 'app/components/indicators'; import IndicatorStore from 'app/stores/indicatorStore'; import { addSuccessMessage, addErrorMessage, addMessage, } from 'app/actionCreators/indicator'; import Button from 'app/components/button'; storiesOf('UI|Toast Indicators', module) .add( 'static', withInfo('Toast Indicators')(() => { let type = select( 'Type', {success: 'success', error: 'error', loading: 'loading'}, 'success' ); return (
); }) ) .add( 'interactive', withInfo({ propTablesExclude: [Button], text: 'Toast Indicators', })(() => { let success; let error; let loading; return (
); }) );