Minor cleanup

This commit is contained in:
Felix Albrigtsen 2022-04-20 15:19:54 +02:00
parent 2475495206
commit 4bae1b3e20
2 changed files with 3 additions and 39 deletions

View File

@ -3,7 +3,6 @@ import { BrowserRouter as Router, Link, Route, Routes } from "react-router-dom";
import TournamentCreator from "./TournamentCreator.js";
import TournamentOverview from "./TournamentOverview.js";
import TournamentManager from "./TournamentManager.js";
import TournamentAnnouncement from "./TournamentAnnouncement";
import TournamentHistory from "./TournamentHistory";
import TournamentTeams from "./TournamentTeams";
import AppBar from './components/AsuraBar';
@ -144,6 +143,9 @@ function Home() {
<CreateButton />
</Box>
<TournamentList />
<Typography variant="h5" color="#555555">
Finished tournaments are moved to the <Link to="/history">history-page</Link>
</Typography>
</Container>
</>
);
@ -160,10 +162,6 @@ export default function App() {
<Route path="/tournament/:tournamentId/manage" element={<TournamentManager />} />
<Route path="/tournament/:tournamentId/teams" element={<TournamentTeams />} />
<Route path="/history" element={<TournamentHistory />} />
<Route
path="/tournament/manage/announcement"
element={<TournamentAnnouncement />}
/>
</Routes>
</Router>
</React.StrictMode>

View File

@ -1,34 +0,0 @@
import * as React from "react";
import { BrowserRouter as Router, Link, Route, Routes } from "react-router-dom";
import Appbar from './components/AsuraBar';
function Announcement() {
return (
<form>
<label for="recipients">Recipients:</label>
<select id="recipients">
<option value="all">All</option>
<option value="mail1@gmail.com">Person 1</option>
<option value="mail2@gmail.com">Person 2</option>
<option value="mail3@gmail.com">Person 3</option>
</select>
<br />
<label for="subject">Subject:</label>
<input type="text" id="subject"></input>
<br />
<input type="text" id="contents"></input>
<Link to="/tournament/manage">
<input type="submit"></input>
</Link>
</form>
);
}
export default function TournamentAnnouncement() {
return (
<>
<Appbar />
<Announcement />
</>
);
}