removed return button

This commit is contained in:
Kristoffer Juelsenn 2022-03-29 15:24:36 +02:00
parent 2673de7331
commit 4d1cacb413
1 changed files with 0 additions and 14 deletions

View File

@ -12,19 +12,6 @@ function showError(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 postCreate() {
let teamName = document.getElementById("teamNameInput").value;
@ -206,7 +193,6 @@ export default function TournamentTeams(props) {
<>
<Appbar pageTitle="Edit teams" />
<TournamentBar pageTitle="Edit Teams" />
<ReturnButton />
<div className="tournamentTeams">
<TeamCreator tournamentId={tournamentId} teams={teams} onTeamCreated={getTeams} />
<TeamList teams={teams} selectedTeamId={selectedTeamId} setSelectedTeamId={setSelectedTeamId} />