diff --git a/src/client/package.json b/src/client/package.json index 8382777..421c933 100644 --- a/src/client/package.json +++ b/src/client/package.json @@ -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", diff --git a/src/client/src/FrontPage.js b/src/client/src/FrontPage.js index 24bdbf9..3c3c9bb 100644 --- a/src/client/src/FrontPage.js +++ b/src/client/src/FrontPage.js @@ -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() { } /> - } /> + } /> } /> } /> } /> diff --git a/src/client/src/createtournament.js b/src/client/src/TournamentCreator.js similarity index 99% rename from src/client/src/createtournament.js rename to src/client/src/TournamentCreator.js index 404aa69..b199dc1 100644 --- a/src/client/src/createtournament.js +++ b/src/client/src/TournamentCreator.js @@ -192,7 +192,7 @@ function TournamentForm(props) { ); } -export default function CreateTournament(props) { +export default function TournamentCreator(props) { return ( <> diff --git a/src/client/src/managetournament.js b/src/client/src/TournamentManager.js similarity index 98% rename from src/client/src/managetournament.js rename to src/client/src/TournamentManager.js index d6edd6e..18c4cf6 100644 --- a/src/client/src/managetournament.js +++ b/src/client/src/TournamentManager.js @@ -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) { - + {/* */} {/* */}