From ae19f2c045554582d6f0bc0aa28098b659ff507c Mon Sep 17 00:00:00 2001 From: Paulo Gomes da Cruz Junior Date: Tue, 29 Oct 2024 11:47:33 -0700 Subject: [PATCH] chore: changing initial page to openings --- frontend/src/screens/DashboardRedirect/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/screens/DashboardRedirect/index.tsx b/frontend/src/screens/DashboardRedirect/index.tsx index 10838afa..7a4d41dd 100644 --- a/frontend/src/screens/DashboardRedirect/index.tsx +++ b/frontend/src/screens/DashboardRedirect/index.tsx @@ -3,7 +3,7 @@ import { useEffect } from "react"; import { useNavigate } from "react-router-dom"; import LoginOrgSelection from "../../views/LoginOrgSelection"; import SideLayout from "../../layouts/SideLayout"; -import Dashboard from "../Dashboard"; +import Opening from "../Opening"; import { RootState } from "../../store"; import { useSelector } from "react-redux"; @@ -17,14 +17,14 @@ const DashboardRedirect: React.FC = () => { // Redirect logic based on selectedClientRoles existence useEffect(() => { if (user && selectedClientRoles) { - navigate("/dashboard"); + navigate("/opening"); } }, [user, selectedClientRoles]); return ( <> {user && selectedClientRoles ? ( - } /> + } /> ) : ( )}