feat: redirect from home to monitors, and setting dashboard open when user navigates to screen even withou clicking
This commit is contained in:
1 parent
082380ad8c
commit
f7a72a86c9
2 files changed
+5
-4
No files matched your search
+3
-2
@@ -1,5 +1,5 @@
|
||||
import { useEffect } from "react";
|
||||
import { Routes, Route } from "react-router-dom";
|
||||
import { Routes, Route, Navigate } from "react-router-dom";
|
||||
import { useSelector } from "react-redux";
|
||||
import { useDispatch } from "react-redux";
|
||||
// import "./App.css";
|
||||
@@ -79,7 +79,8 @@ function App() {
|
||||
<Route
|
||||
exact
|
||||
path="/"
|
||||
element={<ProtectedRoute Component={MonitorsWithAdminProp} />}
|
||||
/* TODO redirect to /monitors */
|
||||
element={<Navigate to="/monitors" />}
|
||||
/>
|
||||
<Route
|
||||
path="/monitors"
|
||||
|
||||
Reference in new issue
Block a user