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}