diff -r 97536386b397 -r 57d63a248f0d client/src/components/SessionList.js --- a/client/src/components/SessionList.js Wed Aug 29 11:02:36 2018 +0200 +++ b/client/src/components/SessionList.js Fri Aug 31 15:14:18 2018 +0200 @@ -25,6 +25,10 @@ this.hide = this.hide.bind(this); } + componentWillMount() { + Modal.setAppElement('body'); +} + doSomething(e){ e.preventDefault(); console.log(e.target.innerHTML); @@ -102,27 +106,27 @@ render() { return (
-
+
{this.props.sessions.map((session) =>
-
- this.props.history.push('/sessions/' + session.get('_id'))}> - {session.title || 'Session sans titre'}
+
+ this.props.history.push('/sessions/' + session.get('_id'))}> + {session.title || 'Session sans titre'}
{moment(session.get('date')).format('DD/MM/YYYY')}
- {session.description}
+ {session.description}
- { this.state.show && ( - ) } @@ -138,12 +142,10 @@ onRequestClose={this.handleModalCloseRequest} >
- - {/*
*/} + Êtes-vous sûr(e) de vouloir supprimer cette session ? - {/*
*/} -
- +
+