From c2dbf2d6a358c5f63ac6c74276f7e0463bfd34b8 Mon Sep 17 00:00:00 2001 From: Ebube Date: Wed, 18 Oct 2023 00:19:48 +0100 Subject: [PATCH] new additions --- components/_App/Layout.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/components/_App/Layout.js b/components/_App/Layout.js index 0786f52..848acdf 100644 --- a/components/_App/Layout.js +++ b/components/_App/Layout.js @@ -11,7 +11,6 @@ import AuthRoute from "middlewares/AuthRoute"; const Layout = ({ children }) => { const router = useRouter(); const [active, setActive] = useState(false); - const isAuthenticated = false; // Replace with your authentication logic const toggleActive = () => { setActive(!active); @@ -26,12 +25,12 @@ const Layout = ({ children }) => { "/authentication/logout", ].includes(router.pathname); + const title = isAuthenticationPage ? "CMC - Authentication" : "CMC - Client"; + return ( <> - - {isAuthenticated ? "CMC - Client" : "CMC - Authentication"} - + {title}