new additions
This commit is contained in:
@@ -11,7 +11,6 @@ import AuthRoute from "middlewares/AuthRoute";
|
|||||||
const Layout = ({ children }) => {
|
const Layout = ({ children }) => {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const [active, setActive] = useState(false);
|
const [active, setActive] = useState(false);
|
||||||
const isAuthenticated = false; // Replace with your authentication logic
|
|
||||||
|
|
||||||
const toggleActive = () => {
|
const toggleActive = () => {
|
||||||
setActive(!active);
|
setActive(!active);
|
||||||
@@ -26,12 +25,12 @@ const Layout = ({ children }) => {
|
|||||||
"/authentication/logout",
|
"/authentication/logout",
|
||||||
].includes(router.pathname);
|
].includes(router.pathname);
|
||||||
|
|
||||||
|
const title = isAuthenticationPage ? "CMC - Authentication" : "CMC - Client";
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Head>
|
<Head>
|
||||||
<title>
|
<title>{title}</title>
|
||||||
{isAuthenticated ? "CMC - Client" : "CMC - Authentication"}
|
|
||||||
</title>
|
|
||||||
<meta name="viewport" content="initial-scale=1.0, width=device-width" />
|
<meta name="viewport" content="initial-scale=1.0, width=device-width" />
|
||||||
</Head>
|
</Head>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user