Add display of team names
This commit is contained in:
parent
68aeade599
commit
30b2891b72
|
|
@ -235,9 +235,12 @@ class EditTeamNamesForm extends React.Component {
|
|||
<Table className="table-striped mt-3">
|
||||
<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>
|
||||
</Table>
|
||||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue