Graphical update

This commit is contained in:
Felix Albrigtsen 2022-03-28 17:50:43 +02:00
parent bef38e84b2
commit 4ff41c40f7
4 changed files with 5 additions and 4 deletions

BIN
src/client/public/asura.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 648 KiB

View File

@ -35,7 +35,8 @@ function TournamentListItem(props) {
component="img" component="img"
alt="tournament image" alt="tournament image"
height="140" height="140"
image="Asura_Rex.png" // image="Asura_Rex.png"
image="banner2.png"
/> />
<CardContent> <CardContent>
<Typography variant="h3" component="div" align="center">{props.tournament.name} </Typography> <Typography variant="h3" component="div" align="center">{props.tournament.name} </Typography>

View File

@ -64,7 +64,7 @@ function TeamList(props) {
<TableHead> <TableHead>
<TableRow> <TableRow>
<TableCell>Team Name</TableCell> <TableCell>Team Name</TableCell>
<TableCell align="right">Team Members</TableCell> {/* <TableCell align="right">Team Members</TableCell> */}
<TableCell align="center">Actions</TableCell> <TableCell align="center">Actions</TableCell>
</TableRow> </TableRow>
</TableHead> </TableHead>
@ -75,7 +75,7 @@ function TeamList(props) {
<TableCell component="th" scope="row"> <b> <TableCell component="th" scope="row"> <b>
{team.name} {team.name}
</b></TableCell> </b></TableCell>
<TableCell align="right">{team.members}</TableCell> {/* <TableCell align="right">{team.members}</TableCell> */}
<TableCell align="center"> <TableCell align="center">
<Button variant="contained" sx={{margin: "auto 5px"}} color="primary" onClick={() => props.setSelectedTeamId(team.id)}>Edit</Button> <Button variant="contained" sx={{margin: "auto 5px"}} color="primary" onClick={() => props.setSelectedTeamId(team.id)}>Edit</Button>
<Button variant="contained" sx={{margin: "auto 5px"}} color="error" onClick={() => {props.onDelete(team.id); }}>Delete</Button> <Button variant="contained" sx={{margin: "auto 5px"}} color="error" onClick={() => {props.onDelete(team.id); }}>Delete</Button>
@ -164,7 +164,7 @@ function TeamEditor(props) {
<h2><b>Edit Team:</b></h2> <h2><b>Edit Team:</b></h2>
<form> <form>
<TextField id="teamNameInput" label="Team Name" value={team.name || ""} onChange={nameInputChanged} sx={{width: "80%"}} /> <TextField id="teamNameInput" label="Team Name" value={team.name || ""} onChange={nameInputChanged} sx={{width: "80%"}} />
<PlayerList players={players} setPlayers={setPlayers} /> {/* <PlayerList players={players} setPlayers={setPlayers} /> */}
<Button variant="contained" sx={{margin: "auto 5px"}} color="primary" onClick={saveTeam}>Save</Button> <Button variant="contained" sx={{margin: "auto 5px"}} color="primary" onClick={saveTeam}>Save</Button>
</form> </form>
</div> </div>