Create documentation for Ico and IcoContainer components

This commit is contained in:
cyril lopez 2017-10-17 16:11:30 +02:00
parent 8f35c9186c
commit 3504624c84

View File

@ -104,8 +104,12 @@ class FooPage extends React.Component {
render () {
return (
<div className={styles.fooPage}>
<Ico icoType="trash" onClick={this.handleClick} />
<PopUpWarning isOpen={this.state.showModal} onConfirm={() => this.setState({ showModal: false })} toggleModal={() => this.setState({ showModal: false })} />
<Ico icoType="trash" onClick={this.handleClick} />
<PopUpWarning
isOpen={this.state.showModal}
onConfirm={() => this.setState({ showModal: false })}
toggleModal={() => this.setState({ showModal: false })}
/>
</div>
);
}
@ -149,8 +153,12 @@ class FooPage extends React.Component {
return (
<div className={styles.fooPage}>
<IcoContainer icons={icons} />
<PopUpWarning isOpen={this.state.showModal} onConfirm={() => this.setState({ showModal: false })} toggleModal={() => this.setState({ showModal: false })} />
<IcoContainer icons={icons} />
<PopUpWarning
isOpen={this.state.showModal}
onConfirm={() => this.setState({ showModal: false })}
toggleModal={() => this.setState({ showModal: false })}
/>
</div>
);
}