added appbar and changed react.fragment to <>

This commit is contained in:
Kristoffer Juelsenn 2022-03-23 10:39:29 +01:00
parent f602828cfa
commit aa9ae8a3e6
2 changed files with 6 additions and 6 deletions

View File

@ -4,8 +4,8 @@ import "./index.css";
import App from "./frontpage.js"; import App from "./frontpage.js";
ReactDOM.render( ReactDOM.render(
<React.StrictMode> <>
<App /> <App />
</React.StrictMode>, </>,
document.getElementById("root") document.getElementById("root")
); );

View File

@ -6,7 +6,7 @@ import SaveButton from "./components/savebutton";
function ManageTournament(props) { function ManageTournament(props) {
return ( return (
<React.Fragment> <>
<form> <form>
<label>Edit name: </label> <label>Edit name: </label>
<input type="text" id="editName" /> <input type="text" id="editName" />
@ -27,7 +27,7 @@ function ManageTournament(props) {
<br /> <br />
<br /> <br />
</form> </form>
</React.Fragment> </>
); );
} }
@ -59,13 +59,13 @@ function InviteButton(props) {
//navigator.clipboard.writeText("discord.gg/asura") //navigator.clipboard.writeText("discord.gg/asura")
export default function TournamentManager() { export default function TournamentManager() {
return ( return (
<React.Fragment> <>
<Appbar /> <Appbar />
<ManageTournament /> <ManageTournament />
<AnnounceButton /> <AnnounceButton />
<InviteButton /> <InviteButton />
<SaveButton /> <SaveButton />
<AlertContainer floatingTime={5000} /> <AlertContainer floatingTime={5000} />
</React.Fragment> </>
); );
} }