diff --git a/src/client/src/components/appbar.js b/src/client/src/components/appbar.js index c1c4a18..8233733 100644 --- a/src/client/src/components/appbar.js +++ b/src/client/src/components/appbar.js @@ -1,15 +1,19 @@ import * as React from "react"; import { AppBar, Typography, Toolbar } from "@mui/material"; import HomeImage from "./homeimage"; +import CssBaseline from '@mui/material/CssBaseline' export default function Appbar() { return ( + <> + This is an Appbar + ); } diff --git a/src/client/src/createtournament.js b/src/client/src/createtournament.js index 5b33ea2..d95fc1c 100644 --- a/src/client/src/createtournament.js +++ b/src/client/src/createtournament.js @@ -31,7 +31,7 @@ function ParticipantLimit(props) { function CreateForm(props) { return ( - + <>
@@ -51,18 +51,18 @@ function CreateForm(props) {
-
+ ); } export default function CreateTournament(props) { return ( - + <> - + ); } diff --git a/src/client/src/frontpage.js b/src/client/src/frontpage.js index 5366732..d830153 100644 --- a/src/client/src/frontpage.js +++ b/src/client/src/frontpage.js @@ -62,24 +62,24 @@ function TournamentList() { fetch("https://jsonplaceholder.typicode.com/todos/1") .then((res) => res.json()) .then((data) => { - console.log(data); + setData(data.data); }) - .catch((err) => console.log("oopsie")); + .catch((err) => console.log(err.message)); }, []); - return
{data && data.map((id) => console.log(id))}
; + return
{data && data.map((data, i) =>
{i}
)}
; } +// function Home() { return ( -
- + /> */}
diff --git a/src/client/src/managetournament.js b/src/client/src/managetournament.js index 3f06870..2233a68 100644 --- a/src/client/src/managetournament.js +++ b/src/client/src/managetournament.js @@ -1,7 +1,7 @@ import * as React from "react"; import { BrowserRouter as Router, Link, Route, Routes } from "react-router-dom"; import { AlertContainer, alert } from "react-custom-alert"; -import HomeImage from "./components/homeimage"; +import Appbar from './components/appbar'; import SaveButton from "./components/savebutton"; function ManageTournament(props) { @@ -60,7 +60,7 @@ function InviteButton(props) { export default function TournamentManager() { return ( - + diff --git a/src/client/src/teameditor.js b/src/client/src/teameditor.js index 0af2bea..80bf98d 100644 --- a/src/client/src/teameditor.js +++ b/src/client/src/teameditor.js @@ -1,11 +1,11 @@ import * as React from "react"; import { BrowserRouter as Router, Link, Route, Routes } from "react-router-dom"; -import HomeImage from "./components/homeimage"; +import Appbar from './components/appbar'; export default function TeamEditor() { return ( - - - + <> + + ); } diff --git a/src/client/src/tournamentannouncement.js b/src/client/src/tournamentannouncement.js index b2153fb..4a9b242 100644 --- a/src/client/src/tournamentannouncement.js +++ b/src/client/src/tournamentannouncement.js @@ -1,6 +1,6 @@ import * as React from "react"; import { BrowserRouter as Router, Link, Route, Routes } from "react-router-dom"; -import HomeImage from "./components/homeimage"; +import Appbar from './components/appbar'; function Announcement() { return ( @@ -26,9 +26,9 @@ function Announcement() { export default function TournamentAnnouncement() { return ( - - + <> + - + ); } diff --git a/src/client/src/tournamentmatches.js b/src/client/src/tournamentmatches.js index a689e00..a69d21e 100644 --- a/src/client/src/tournamentmatches.js +++ b/src/client/src/tournamentmatches.js @@ -1,11 +1,11 @@ import * as React from "react"; import { BrowserRouter as Router, Link, Route, Routes } from "react-router-dom"; -import HomeImage from "./components/homeimage"; +import Appbar from './components/appbar'; export default function TournamentMatches() { return ( - - - + <> + + ); } diff --git a/src/client/src/tournamentoverview.js b/src/client/src/tournamentoverview.js index b9f6504..1b663c8 100644 --- a/src/client/src/tournamentoverview.js +++ b/src/client/src/tournamentoverview.js @@ -1,11 +1,23 @@ import * as React from "react"; import { BrowserRouter as Router, Link, Route, Routes } from "react-router-dom"; -import HomeImage from "./components/homeimage"; import ManageButton from "./components/managebutton"; +import Appbar from './components/appbar'; + +function RenderBrackets() { + return ( + <> + brackets = [] + knownTeams = [2,4,8,16,32,64,128,256] + + + + + ); +} function ViewTournament(params) { return ( - + <>
@@ -13,16 +25,16 @@ function ViewTournament(params) { -
+ ); } export default function TournamentOverview(props) { return ( - - + <> + - + ); }