changed route name to login
This commit is contained in:
@@ -104,7 +104,7 @@ const ForgotPasswordForm = () => {
|
||||
|
||||
<Box as="div" textAlign="center" mt="20px">
|
||||
<Link
|
||||
href="/auth/sign-in/"
|
||||
href="/auth/login/"
|
||||
className="primaryColor text-decoration-none"
|
||||
>
|
||||
<i className="ri-arrow-left-s-line"></i> Back to Sign in
|
||||
|
||||
@@ -45,7 +45,7 @@ const SignUpForm = () => {
|
||||
<Typography fontSize="15px" mb="30px">
|
||||
Already have an account?{" "}
|
||||
<Link
|
||||
href="/auth/sign-in/"
|
||||
href="/auth/login/"
|
||||
className="primaryColor text-decoration-none"
|
||||
>
|
||||
Sign in
|
||||
|
||||
@@ -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 && (
|
||||
<>
|
||||
|
||||
@@ -450,7 +450,7 @@ export const SidebarData = [
|
||||
},
|
||||
{
|
||||
title: "Authentication",
|
||||
path: "/auth/sign-in/",
|
||||
path: "/auth/login/",
|
||||
icon: <LockIcon />,
|
||||
iconClosed: <KeyboardArrowRightIcon />,
|
||||
iconOpened: <KeyboardArrowDownIcon />,
|
||||
|
||||
Reference in New Issue
Block a user