From d0f77e04f9e3501f7522398bd364ba09392c5253 Mon Sep 17 00:00:00 2001 From: Hermann_Kitio Date: Sat, 18 Apr 2026 02:23:05 +0300 Subject: [PATCH] =?UTF-8?q?feat(app):=20c=C3=A2bler=20router=20Sprint=201?= =?UTF-8?q?=20=E2=80=94=20login/register/dashboard=20+=20redirect=20/=20(?= =?UTF-8?q?=C3=A9tape=204)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/router.tsx | 38 +++++++++++++++++++++++++++----------- 1 file changed, 27 insertions(+), 11 deletions(-) diff --git a/src/app/router.tsx b/src/app/router.tsx index 9f09a3e..c2882d2 100644 --- a/src/app/router.tsx +++ b/src/app/router.tsx @@ -1,14 +1,39 @@ import React, { Suspense } from 'react' -import { Routes, Route } from 'react-router-dom' +import { Navigate, Routes, Route } from 'react-router-dom' + +import { LoginPage } from '@/features/auth/pages/LoginPage' +import { RegisterPage } from '@/features/auth/pages/RegisterPage' +import { ProtectedRoute } from '@/features/auth/components/ProtectedRoute' const DesignSystemPage = import.meta.env.DEV ? React.lazy(() => import('@/features/design-system/DesignSystemPage')) : () => null +function DashboardStub() { + return ( +
+

Dashboard — stub

+

+ Cette vue sera remplacée par DashboardPage au prochain lot du Sprint 1. +

+
+ ) +} + export function AppRouter() { return ( - } /> + } /> + } /> + } /> + + + + } + /> {import.meta.env.DEV && ( ) } - -function ScaffoldPlaceholder() { - return ( -
-

Expria — scaffold Sprint 0

-

Aucune feature n'est encore branchée. Les routes seront ajoutées au fil des sprints.

-
- ) -}