changed route name to login

This commit is contained in:
2023-10-20 17:09:46 -07:00
parent b132670152
commit 07337a6cfc
11 changed files with 73 additions and 103 deletions
+6 -4
View File
@@ -20,8 +20,9 @@ const Layout = ({ children }) => {
useEffect(() => {
const authenticationPages = [
"/",
"/auth",
"/auth/sign-in",
"/auth/login",
"/auth/sign-up",
"/auth/forgot-password",
"/auth/lock-screen",
@@ -36,6 +37,9 @@ const Layout = ({ children }) => {
console.log("isAuthenticationPage:", isAuthenticationPage, router.pathname);
const title = isAuthenticationPage ? "CMC - auth" : "CMC - dashboard";
const mainWrapper = {
paddingLeft: typeof window !== "undefined" && isAuthenticationPage && "0"
}
return (
<>
@@ -46,9 +50,7 @@ const Layout = ({ children }) => {
<div
className={`main-wrapper-content ${active ? "active" : ""}`}
style={{
paddingLeft: isAuthenticationPage && "0",
}}
style={mainWrapper}
>
{!isAuthenticationPage && (
<>
+1 -1
View File
@@ -450,7 +450,7 @@ export const SidebarData = [
},
{
title: "Authentication",
path: "/auth/sign-in/",
path: "/auth/login/",
icon: <LockIcon />,
iconClosed: <KeyboardArrowRightIcon />,
iconOpened: <KeyboardArrowDownIcon />,