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