Minor cleanup
This commit is contained in:
parent
2475495206
commit
4bae1b3e20
|
@ -3,7 +3,6 @@ import { BrowserRouter as Router, Link, Route, Routes } from "react-router-dom";
|
||||||
import TournamentCreator from "./TournamentCreator.js";
|
import TournamentCreator from "./TournamentCreator.js";
|
||||||
import TournamentOverview from "./TournamentOverview.js";
|
import TournamentOverview from "./TournamentOverview.js";
|
||||||
import TournamentManager from "./TournamentManager.js";
|
import TournamentManager from "./TournamentManager.js";
|
||||||
import TournamentAnnouncement from "./TournamentAnnouncement";
|
|
||||||
import TournamentHistory from "./TournamentHistory";
|
import TournamentHistory from "./TournamentHistory";
|
||||||
import TournamentTeams from "./TournamentTeams";
|
import TournamentTeams from "./TournamentTeams";
|
||||||
import AppBar from './components/AsuraBar';
|
import AppBar from './components/AsuraBar';
|
||||||
|
@ -144,6 +143,9 @@ function Home() {
|
||||||
<CreateButton />
|
<CreateButton />
|
||||||
</Box>
|
</Box>
|
||||||
<TournamentList />
|
<TournamentList />
|
||||||
|
<Typography variant="h5" color="#555555">
|
||||||
|
Finished tournaments are moved to the <Link to="/history">history-page</Link>
|
||||||
|
</Typography>
|
||||||
</Container>
|
</Container>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
@ -160,10 +162,6 @@ export default function App() {
|
||||||
<Route path="/tournament/:tournamentId/manage" element={<TournamentManager />} />
|
<Route path="/tournament/:tournamentId/manage" element={<TournamentManager />} />
|
||||||
<Route path="/tournament/:tournamentId/teams" element={<TournamentTeams />} />
|
<Route path="/tournament/:tournamentId/teams" element={<TournamentTeams />} />
|
||||||
<Route path="/history" element={<TournamentHistory />} />
|
<Route path="/history" element={<TournamentHistory />} />
|
||||||
<Route
|
|
||||||
path="/tournament/manage/announcement"
|
|
||||||
element={<TournamentAnnouncement />}
|
|
||||||
/>
|
|
||||||
</Routes>
|
</Routes>
|
||||||
</Router>
|
</Router>
|
||||||
</React.StrictMode>
|
</React.StrictMode>
|
||||||
|
|
|
@ -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 />
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
}
|
|
Loading…
Reference in New Issue