From 5c4130d3e497bd0f1ebf7c40dc06ae8989e7b32e Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Sat, 23 Apr 2022 14:37:18 +0200 Subject: [PATCH] Continued session, admin page --- src/client/src/AdminsOverview.js | 47 +++++++++++-------- src/client/src/ProfilePage.js | 22 ++++++--- src/client/src/TournamentHistory.js | 4 +- src/client/src/components/AsuraBar.js | 2 + .../src/components/tournamentBracket.css | 2 +- 5 files changed, 48 insertions(+), 29 deletions(-) diff --git a/src/client/src/AdminsOverview.js b/src/client/src/AdminsOverview.js index a7be8fe..a38ae2d 100644 --- a/src/client/src/AdminsOverview.js +++ b/src/client/src/AdminsOverview.js @@ -26,7 +26,7 @@ function AdminCreator(props){ formData.append("email", adminEmail) let body = new URLSearchParams(formData) - fetch(process.env.REACT_APP_API_URL + `/admins/create`, { + fetch(process.env.REACT_APP_API_URL + `/users/createBlank`, { method: "POST", body: body }) @@ -45,7 +45,7 @@ function AdminCreator(props){ return (
- + {/* */}