Fix devil mistake(klæbb)
This commit is contained in:
parent
30ab9da7b5
commit
2a56ffd4b5
|
@ -4,7 +4,7 @@
|
|||
"description": "DCST1008 Project - Server - Asura Tournament Management System",
|
||||
"author": "felixalb, kristoju, jonajha, krisleri",
|
||||
"private": true,
|
||||
"homepage": ".",
|
||||
"homepage": "",
|
||||
"dependencies": {
|
||||
"@emotion/react": "^11.8.2",
|
||||
"@emotion/styled": "^11.8.1",
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import * as React from "react";
|
||||
import { BrowserRouter as Router, Link, Route, Routes } from "react-router-dom";
|
||||
import CreateTournament from "./createtournament.js";
|
||||
import TournamentCreator from "./TournamentCreator.js";
|
||||
import TournamentOverview from "./TournamentOverview.js";
|
||||
import TournamentManager from "./managetournament.js";
|
||||
import TournamentManager from "./TournamentManager.js";
|
||||
import TournamentAnnouncement from "./TournamentAnnouncement";
|
||||
import TournamentMatches from "./TournamentMatches";
|
||||
import TournamentTeams from "./TournamentTeams";
|
||||
|
@ -141,7 +141,7 @@ export default function App() {
|
|||
<Router>
|
||||
<Routes>
|
||||
<Route path="/" element={<Home />} />
|
||||
<Route path="/create" element={<CreateTournament />} />
|
||||
<Route path="/create" element={<TournamentCreator />} />
|
||||
<Route path="/tournament/:tournamentId" element={<TournamentOverview />} />
|
||||
<Route path="/tournament/:tournamentId/manage" element={<TournamentManager />} />
|
||||
<Route path="/tournament/:tournamentId/teams" element={<TournamentTeams />} />
|
||||
|
|
|
@ -192,7 +192,7 @@ function TournamentForm(props) {
|
|||
);
|
||||
}
|
||||
|
||||
export default function CreateTournament(props) {
|
||||
export default function TournamentCreator(props) {
|
||||
return (
|
||||
<>
|
||||
<Appbar pageTitle="New tournament" />
|
|
@ -1,5 +1,5 @@
|
|||
import * as React from "react";
|
||||
import { BrowserRouter as Link } from "react-router-dom";
|
||||
import { BrowserRouter as Router, Link, Route, Routes } from "react-router-dom";
|
||||
// import { AlertContainer, alert } from "react-custom-alert";
|
||||
import Appbar from "./components/appbar";
|
||||
import { useParams } from "react-router-dom";
|
||||
|
@ -174,7 +174,7 @@ export default function TournamentManager(props) {
|
|||
<Appbar pageTitle="Edit Tournament" />
|
||||
<Paper sx={{minHeight: "30vh", width: "90vw", margin: "20px auto", padding: "20px 0"}} component={Container} direction="column" align="center">
|
||||
<ManageTournament tournamentId={tournamentId} />
|
||||
<AnnounceButton />
|
||||
{/* <AnnounceButton /> */}
|
||||
<InviteButton />
|
||||
{/* <AlertContainer floatingTime={5000} /> */}
|
||||
</Paper>
|
Loading…
Reference in New Issue