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">
|
<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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue