From 37b340be5fe7583f1b8881ca70b07125976a1787 Mon Sep 17 00:00:00 2001 From: Weronika Tomaszewska Date: Sun, 17 Dec 2023 22:06:29 -0500 Subject: [PATCH] feature/CPF-34 hardcode email display, remove scaffold layout --- web/src/Routes.tsx | 9 ++-- web/src/components/Navigation/Navigation.tsx | 17 +++++--- .../AuthenticatedLayout.tsx | 42 +++++++++++++++++-- .../layouts/ScaffoldLayout/ScaffoldLayout.tsx | 17 -------- web/src/pages/LoginPage/LoginPage.stories.tsx | 13 ++++++ web/src/pages/LoginPage/LoginPage.test.tsx | 14 +++++++ web/src/pages/LoginPage/LoginPage.tsx | 23 ++++++++++ 7 files changed, 104 insertions(+), 31 deletions(-) delete mode 100644 web/src/layouts/ScaffoldLayout/ScaffoldLayout.tsx create mode 100644 web/src/pages/LoginPage/LoginPage.stories.tsx create mode 100644 web/src/pages/LoginPage/LoginPage.test.tsx create mode 100644 web/src/pages/LoginPage/LoginPage.tsx diff --git a/web/src/Routes.tsx b/web/src/Routes.tsx index 014c3f8c..8e5a09ee 100644 --- a/web/src/Routes.tsx +++ b/web/src/Routes.tsx @@ -7,9 +7,7 @@ // 'src/pages/HomePage/HomePage.js' -> HomePage // 'src/pages/Admin/BooksPage/BooksPage.js' -> AdminBooksPage -import { Set, Router, Route } from '@redwoodjs/router' - -// import ScaffoldLayout from 'src/layouts/ScaffoldLayout' +import { PrivateSet, Router, Route } from '@redwoodjs/router' import { useAuth } from './auth' import AuthenticatedLayout from './layouts/AuthenticatedLayout/AuthenticatedLayout' @@ -17,7 +15,7 @@ import AuthenticatedLayout from './layouts/AuthenticatedLayout/AuthenticatedLayo const Routes = () => { return ( - + {/* Uploads */} @@ -36,7 +34,8 @@ const Routes = () => { - + + ) diff --git a/web/src/components/Navigation/Navigation.tsx b/web/src/components/Navigation/Navigation.tsx index 6f51d32b..aeab9736 100644 --- a/web/src/components/Navigation/Navigation.tsx +++ b/web/src/components/Navigation/Navigation.tsx @@ -25,23 +25,30 @@ const Navigation = () => { +
Subrecipients
+
+ +
Users
+
+ {/* TODO: Replace disabled tabs with the tabs below when Users and Subrecipients pages are ready */} + {/* Subrecipients - - + */} + {/* Users - + */} { + const { isAuthenticated, currentUser, logOut } = useAuth() + return (
-