From ace507232a3f7af57cc282ca08499e1649be0c6c Mon Sep 17 00:00:00 2001 From: pramod mahajan Date: Mon, 8 Sep 2025 12:48:19 +0530 Subject: [PATCH] changed dashboard route "/" to "/dashboard" --- src/pages/authentication/LoginPage.jsx | 2 +- src/pages/authentication/LoginWithOtp.jsx | 2 +- src/router/AppRoutes.jsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/authentication/LoginPage.jsx b/src/pages/authentication/LoginPage.jsx index ab898b4c..9240e33d 100644 --- a/src/pages/authentication/LoginPage.jsx +++ b/src/pages/authentication/LoginPage.jsx @@ -44,7 +44,7 @@ const LoginPage = () => { localStorage.setItem("jwtToken", response.data.token); localStorage.setItem("refreshToken", response.data.refreshToken); setLoading(false); - navigate("/"); + navigate("/dashboard"); } else { await AuthRepository.sendOTP({ email: data.username }); showToast("OTP has been sent to your email.", "success"); diff --git a/src/pages/authentication/LoginWithOtp.jsx b/src/pages/authentication/LoginWithOtp.jsx index 73882b4f..8b07f8fb 100644 --- a/src/pages/authentication/LoginWithOtp.jsx +++ b/src/pages/authentication/LoginWithOtp.jsx @@ -52,7 +52,7 @@ const LoginWithOtp = () => { setLoading(false); localStorage.removeItem("otpUsername"); localStorage.removeItem("otpSentTime"); - navigate("/"); + navigate("/dashboard"); } catch (err) { showToast("Invalid or expired OTP.", "error"); diff --git a/src/router/AppRoutes.jsx b/src/router/AppRoutes.jsx index feb9e05f..66293637 100644 --- a/src/router/AppRoutes.jsx +++ b/src/router/AppRoutes.jsx @@ -66,7 +66,7 @@ const router = createBrowserRouter( { element: , children: [ - { path: "/", element: }, + { path: "/dashboard", element: }, { path: "/projects", element: }, { path: "/projects/details", element: }, { path: "/project/manage/:projectId", element: },