new additions

This commit is contained in:
Ebube
2023-10-18 00:19:48 +01:00
parent d092c6f909
commit c2dbf2d6a3
+3 -4
View File
@@ -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 (
<>
<Head>
<title>
{isAuthenticated ? "CMC - Client" : "CMC - Authentication"}
</title>
<title>{title}</title>
<meta name="viewport" content="initial-scale=1.0, width=device-width" />
</Head>