diff -r a642639dbc07 -r 1fd73fdaf4c6 client/src/components/SessionList.js --- a/client/src/components/SessionList.js Mon Oct 08 04:09:19 2018 +0200 +++ b/client/src/components/SessionList.js Tue Oct 09 10:52:23 2018 +0200 @@ -55,14 +55,23 @@ showSessionsNumber = () => { if (this.props.sessions.size === 1) return ( - {this.props.sessions.size} session + {this.props.sessions.size} session ); return ( - {this.props.sessions.size} sessions + {this.props.sessions.size} sessions ) } + emptyListMessage = () => { + + if (this.props.sessions.size === 0) { + return ( +

vous n'avez créé aucune session pour le moment

+ ); + } + } + deleteSession = () => { const { sessionToDelete } = this.state; @@ -81,11 +90,12 @@
{this.showSessionsNumber()} + {this.emptyListMessage()}
-
+
{this.props.sessions.map((session) => -
-
+ )}