Add display of team names

This commit is contained in:
JP1998 2018-12-12 16:22:36 +01:00
parent 68aeade599
commit 30b2891b72
1 changed files with 7 additions and 8 deletions

View File

@ -235,9 +235,12 @@ class EditTeamNamesForm extends React.Component {
<Table className="table-striped mt-3"> <Table className="table-striped mt-3">
<tbody> <tbody>
{ {
teams.map((team, index) => { teams.map((team, index) =>
<tr key={index}>
}) <td><Button outline size="sm" className="changeTeamnameButton">Ändern</Button></td>
<td className="w-100">{ team.name }</td>
</tr>
)
} }
</tbody> </tbody>
</Table> </Table>
@ -253,13 +256,9 @@ class EditTeamNamesForm extends React.Component {
}); });
} }
handleClick(input) { handleClick(input, index) {
// TODO: Apply changes to the tournament properties // TODO: Apply changes to the tournament properties
} }
handleNameInput(input) {
this.setState({ name : input.target.value });
}
} }
function mapStateToTeamFormProps(state) { function mapStateToTeamFormProps(state) {