diff --git a/src/client/src/TournamentOverview.js b/src/client/src/TournamentOverview.js index a1b3286..83852ad 100644 --- a/src/client/src/TournamentOverview.js +++ b/src/client/src/TournamentOverview.js @@ -3,10 +3,12 @@ import { Link } from "react-router-dom"; import Appbar from './components/AsuraBar'; import TournamentBar from "./components/TournamentBar"; import { useParams } from 'react-router-dom' -import { Button, Paper, Stack, CircularProgress, Box, Grid } from "@mui/material"; +import { Button, IconButton, Paper, Stack, CircularProgress, Box, Grid, Typography, Container } from "@mui/material"; import "./components/tournamentBracket.css"; import EmojiEventsIcon from '@mui/icons-material/EmojiEvents'; import DoDisturbIcon from '@mui/icons-material/DoDisturb'; +import BackspaceIcon from '@mui/icons-material/Backspace'; +import AddCircleIcon from '@mui/icons-material/AddCircle'; function showError(error) { alert("Something went wrong. \n" + error); @@ -44,6 +46,10 @@ function Match(props){ showError("No team selected"); return; } + // if(props.match.winnerId === teamId){ + // showError("Team already won"); + // return; + // } let formData = new FormData(); formData.append("winnerId",teamId); let body = new URLSearchParams(formData); @@ -66,13 +72,27 @@ function Match(props){ return ( <> {/* Team 1 (Winner-status?) (Team name) */} -