Minor cleanup
This commit is contained in:
parent
4d1ee2de62
commit
ea547750f5
|
@ -113,22 +113,6 @@ function Home() {
|
|||
Tournaments
|
||||
</Typography>
|
||||
<TournamentList />
|
||||
{/* <ListElement
|
||||
name="Weekend Warmup"
|
||||
competitors="16"
|
||||
date="29.04.2022"
|
||||
/>
|
||||
<ListElement
|
||||
name="Saturday Showdown"
|
||||
competitors="8"
|
||||
date="30.04.2022"
|
||||
/>
|
||||
<ListElement
|
||||
name="Sunday Funday"
|
||||
competitors="64"
|
||||
date="01.05.2022"
|
||||
/> */}
|
||||
|
||||
</Container>
|
||||
</main>
|
||||
<footer className="footer"></footer>
|
||||
|
|
|
@ -115,11 +115,6 @@ function TeamEditor(props) {
|
|||
.catch(error => showError(error));
|
||||
}, [props.selectedTeamId]);
|
||||
|
||||
function postEdit() {
|
||||
let formData = new FormData();
|
||||
formData.append("name", document.getElementById("teamNameInput").value);
|
||||
}
|
||||
|
||||
if (props.selectedTeamId === -1 || !team) {
|
||||
return (
|
||||
<Paper sx={{minHeight: "30vh", width: "90vw", margin: "10px auto"}} component={Stack} direction="column" justifyContent="center">
|
||||
|
@ -139,7 +134,6 @@ function TeamEditor(props) {
|
|||
function saveTeam() {
|
||||
let formData = new FormData();
|
||||
formData.append("name", team.name);
|
||||
console.log(team);
|
||||
let body = new URLSearchParams(formData)
|
||||
fetch(process.env.REACT_APP_API_URL + `/team/${team.id}/edit`, {
|
||||
method: "POST",
|
||||
|
|
Loading…
Reference in New Issue