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
@@ -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
+1 -1
View File
@@ -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
+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 />,