From 30b2891b7228e4d660169dbc2b5dc903586fbbe4 Mon Sep 17 00:00:00 2001 From: JP1998 Date: Wed, 12 Dec 2018 16:22:36 +0100 Subject: [PATCH] Add display of team names --- pages/tournament-edit.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/pages/tournament-edit.js b/pages/tournament-edit.js index 9a93d43..7d56a1e 100644 --- a/pages/tournament-edit.js +++ b/pages/tournament-edit.js @@ -235,9 +235,12 @@ class EditTeamNamesForm extends React.Component { { - teams.map((team, index) => { - - }) + teams.map((team, index) => + + + + + ) }
{ team.name }
@@ -253,13 +256,9 @@ class EditTeamNamesForm extends React.Component { }); } - handleClick(input) { + handleClick(input, index) { // TODO: Apply changes to the tournament properties } - - handleNameInput(input) { - this.setState({ name : input.target.value }); - } } function mapStateToTeamFormProps(state) {