import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { StoryContainer } from './helpers'; import { Modal, Panel, Button, Grid } from '../src'; class ModalDemo extends React.Component { constructor(props) { super(props); this.state = { open: false } } handleChange() { this.setState({ open: !this.state.open }); } render() { const { label } = this.props; return (
this.handleChange()}>Open modal

Are you sure you want to delete your template?

) } }; export default storiesOf('Modal', module) .addDecorator((getStory) => ( { getStory() } )) .addWithInfo('Open', () => { return (

Are you sure you want to delete your template?

) }) .addWithInfo('Toggle Example', () => { return ( {/* This is only here to display props below */} ) });