full user login flow, redirect user from root path to dashboard

This commit is contained in:
IluaAir
2025-10-21 22:40:37 +03:00
parent 17b64121db
commit 246cd54a47
4 changed files with 58 additions and 3 deletions

View File

@@ -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" />