From 148af4e49951bcaf8df29a0f5d2dc7cc76fc2808 Mon Sep 17 00:00:00 2001 From: Mattias Date: Sat, 16 Mar 2024 02:46:58 +0100 Subject: [PATCH 01/18] Removed duplicate path --- frontend/src/main.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/frontend/src/main.tsx b/frontend/src/main.tsx index 29f168e..35dceea 100644 --- a/frontend/src/main.tsx +++ b/frontend/src/main.tsx @@ -57,10 +57,6 @@ const router = createBrowserRouter([ path: "/register", element: , }, - { - path: "/admin-menu", - element: , - }, { path: "/project-page", element: , From a67c44564fa85d71b57eaf3af39e718e079088c7 Mon Sep 17 00:00:00 2001 From: Mattias Date: Sat, 16 Mar 2024 02:47:17 +0100 Subject: [PATCH 02/18] Visual fixes --- frontend/src/Components/Register.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/Components/Register.tsx b/frontend/src/Components/Register.tsx index e4a3ba0..faa1a88 100644 --- a/frontend/src/Components/Register.tsx +++ b/frontend/src/Components/Register.tsx @@ -14,7 +14,7 @@ export default function Register(): JSX.Element { }; return ( -
+
{ setPassword(e.target.value); From d227ffc6ae323b84c248debbe60081a6c1ac13e9 Mon Sep 17 00:00:00 2001 From: Mattias Date: Sat, 16 Mar 2024 02:47:39 +0100 Subject: [PATCH 03/18] Added the register component to content --- frontend/src/Pages/AdminPages/AdminAddUser.tsx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/frontend/src/Pages/AdminPages/AdminAddUser.tsx b/frontend/src/Pages/AdminPages/AdminAddUser.tsx index 5e8c01f..c0f9492 100644 --- a/frontend/src/Pages/AdminPages/AdminAddUser.tsx +++ b/frontend/src/Pages/AdminPages/AdminAddUser.tsx @@ -1,18 +1,16 @@ import BasicWindow from "../../Components/BasicWindow"; import Button from "../../Components/Button"; +import Register from "../../Components/Register"; function AdminAddUser(): JSX.Element { - const content = <>; + const content = ( + <> + + + ); const buttons = ( <> -
+
); } - -export default NewTimeReport; From 87c044b5bfe2aadf44576bc0ae6991c52f4ffe0d Mon Sep 17 00:00:00 2001 From: Mattias Date: Sat, 16 Mar 2024 13:11:26 +0100 Subject: [PATCH 05/18] Submit-button has been moved to the timereport --- frontend/src/Pages/UserPages/UserNewTimeReportPage.tsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/frontend/src/Pages/UserPages/UserNewTimeReportPage.tsx b/frontend/src/Pages/UserPages/UserNewTimeReportPage.tsx index c93527a..ca84770 100644 --- a/frontend/src/Pages/UserPages/UserNewTimeReportPage.tsx +++ b/frontend/src/Pages/UserPages/UserNewTimeReportPage.tsx @@ -13,13 +13,6 @@ function UserNewTimeReportPage(): JSX.Element { const buttons = ( <> -
+ ); } - -export default NewTimeReport; From f3c5ce57ebe139c091ab9236a2915ff891c7131d Mon Sep 17 00:00:00 2001 From: Mattias Date: Sat, 16 Mar 2024 13:11:26 +0100 Subject: [PATCH 12/18] Submit-button has been moved to the timereport --- frontend/src/Pages/UserPages/UserNewTimeReportPage.tsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/frontend/src/Pages/UserPages/UserNewTimeReportPage.tsx b/frontend/src/Pages/UserPages/UserNewTimeReportPage.tsx index c93527a..ca84770 100644 --- a/frontend/src/Pages/UserPages/UserNewTimeReportPage.tsx +++ b/frontend/src/Pages/UserPages/UserNewTimeReportPage.tsx @@ -13,13 +13,6 @@ function UserNewTimeReportPage(): JSX.Element { const buttons = ( <> -