Moved login and register out of the rouer outlet, added redirect to root route

This commit is contained in:
Alex Holliday committed 2024-06-24 13:27:38 -07:00
1 parent b84a5e017d
commit e356515098
1 file changed
+8 -2
+8 -2
View File
@@ -23,6 +23,11 @@ function App() {
<>
<Routes>
<Route exact path="/" element={<HomeLayout />}>
<Route
exact
path="/"
element={<ProtectedRoute Component={Monitors} />}
/>
<Route
path="/monitors"
element={<ProtectedRoute Component={Monitors} />}
@@ -43,9 +48,10 @@ function App() {
path="settings"
element={<ProtectedRoute Component={Settings} />}
/>
<Route exact path="/login" element={<Login />} />
<Route exact path="/register" element={<Register />} />
</Route>
<Route exact path="/login" element={<Login />} />
<Route exact path="/register" element={<Register />} />
<Route exact path="/demo" element={<Demo />} />
{/* <Route path="/toast" element={<ToastComponent />} /> */}
<Route path="*" element={<NotFound />} />