full user login flow, redirect user from root path to dashboard
This commit is contained in:
@@ -4,13 +4,14 @@ import { SignUp } from './pages/SignUp'
|
||||
import { AuthLayout } from './layouts/AuthLayout'
|
||||
import { Routes, Route, Navigate } from 'react-router'
|
||||
import Dashboard from './pages/Dashboard'
|
||||
import RootRedirect from './pages/RootRedirect'
|
||||
|
||||
|
||||
function App() {
|
||||
|
||||
return (
|
||||
<Routes>
|
||||
<Route path="/" element={<Navigate to="/auth/login" replace />} />
|
||||
<Route path="/" element={<RootRedirect />} />
|
||||
|
||||
<Route path="/auth" element={
|
||||
<AuthLayout className="flex min-h-svh flex-col items-center justify-center bg-muted text-foreground" />
|
||||
|
||||
Reference in New Issue
Block a user