1+ import NotFound from "@/app/NotFound" ;
12import { useAuth } from "@/domains/auth/application/AuthContext" ;
2- import { AuthenticatedLayout } from "@/app/AuthenticatedLayout" ;
33import AuthCallbackPage from "@/domains/auth/presentation/pages/AuthCallbackPage" ;
44import LoginPage from "@/domains/auth/presentation/pages/LoginPage" ;
55import RegisterPage from "@/domains/auth/presentation/pages/RegisterPage" ;
6- import JobsPage from "@/domains/jobs/presentation/pages/JobsPage" ;
76import LandingPage from "@/domains/marketing/presentation/pages/LandingPage" ;
8- import NotFound from "@/app/NotFound" ;
7+ import NewDashboardPage from "@/domains/new_dashboard/NewDashboardPage" ;
8+ import NewDashboardLayout from "@/domains/new_dashboard/layout" ;
99import Loading from "@/shared/ui/Loading" ;
1010import { Navigate , Route , Routes } from "react-router-dom" ;
1111
@@ -24,21 +24,23 @@ function PublicRoute({ children }: { children: React.ReactNode }) {
2424}
2525
2626export function AppRoutes ( ) {
27+ const dashboardElement = (
28+ < ProtectedRoute >
29+ < NewDashboardLayout >
30+ < NewDashboardPage />
31+ </ NewDashboardLayout >
32+ </ ProtectedRoute >
33+ ) ;
34+
2735 return (
2836 < Routes >
2937 < Route path = "/" element = { < LandingPage /> } />
30- < Route
31- element = {
32- < ProtectedRoute >
33- < AuthenticatedLayout />
34- </ ProtectedRoute >
35- }
36- >
37- < Route path = "/home" element = { < JobsPage /> } />
38- < Route path = "/dashboard" element = { < NotFound /> } />
39- < Route path = "/vagas" element = { < JobsPage /> } />
40- < Route path = "/mentoria" element = { < NotFound /> } />
41- </ Route >
38+ < Route path = "/home" element = { dashboardElement } />
39+ < Route path = "/dashboard" element = { dashboardElement } />
40+ < Route path = "/vagas" element = { dashboardElement } />
41+ < Route path = "/mentoria" element = { dashboardElement } />
42+ < Route path = "/perfil" element = { dashboardElement } />
43+ < Route path = "/ajuda" element = { dashboardElement } />
4244 < Route
4345 path = "/login"
4446 element = {
0 commit comments