From 2a56ffd4b54c977932b97ff6a12e6b315e080a8f Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Mon, 28 Mar 2022 23:03:47 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20devil=20mistake(kl=C3=A6bb)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/package.json | 2 +- src/client/src/FrontPage.js | 6 +++--- .../src/{createtournament.js => TournamentCreator.js} | 2 +- .../src/{managetournament.js => TournamentManager.js} | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) rename src/client/src/{createtournament.js => TournamentCreator.js} (99%) rename src/client/src/{managetournament.js => TournamentManager.js} (98%) 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) { - + {/* */} {/* */}