removed return button
This commit is contained in:
parent
2673de7331
commit
4d1cacb413
|
@ -12,19 +12,6 @@ function showError(error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
|
|
||||||
function ReturnButton() {
|
|
||||||
const { tournamentId } = useParams();
|
|
||||||
return(
|
|
||||||
<Link to={`/tournament/${tournamentId}`}>
|
|
||||||
<Button type="button" variant="contained" color="primary" >
|
|
||||||
<Box>
|
|
||||||
Return to Tournament
|
|
||||||
</Box>
|
|
||||||
</Button>
|
|
||||||
</Link>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
function TeamCreator(props) {
|
function TeamCreator(props) {
|
||||||
function postCreate() {
|
function postCreate() {
|
||||||
let teamName = document.getElementById("teamNameInput").value;
|
let teamName = document.getElementById("teamNameInput").value;
|
||||||
|
@ -206,7 +193,6 @@ export default function TournamentTeams(props) {
|
||||||
<>
|
<>
|
||||||
<Appbar pageTitle="Edit teams" />
|
<Appbar pageTitle="Edit teams" />
|
||||||
<TournamentBar pageTitle="Edit Teams" />
|
<TournamentBar pageTitle="Edit Teams" />
|
||||||
<ReturnButton />
|
|
||||||
<div className="tournamentTeams">
|
<div className="tournamentTeams">
|
||||||
<TeamCreator tournamentId={tournamentId} teams={teams} onTeamCreated={getTeams} />
|
<TeamCreator tournamentId={tournamentId} teams={teams} onTeamCreated={getTeams} />
|
||||||
<TeamList teams={teams} selectedTeamId={selectedTeamId} setSelectedTeamId={setSelectedTeamId} />
|
<TeamList teams={teams} selectedTeamId={selectedTeamId} setSelectedTeamId={setSelectedTeamId} />
|
||||||
|
|
Loading…
Reference in New Issue