changed dashboard route "/" to "/dashboard"
This commit is contained in:
parent
f9876c6d52
commit
ace507232a
@ -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");
|
||||
|
@ -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");
|
||||
|
@ -66,7 +66,7 @@ const router = createBrowserRouter(
|
||||
{
|
||||
element: <HomeLayout />,
|
||||
children: [
|
||||
{ path: "/", element: <Dashboard /> },
|
||||
{ path: "/dashboard", element: <Dashboard /> },
|
||||
{ path: "/projects", element: <ProjectList /> },
|
||||
{ path: "/projects/details", element: <ProjectDetails /> },
|
||||
{ path: "/project/manage/:projectId", element: <ManageProject /> },
|
||||
|
Loading…
x
Reference in New Issue
Block a user