feat(dashboard): PaywallBanner + DashboardPage conditionnel (Sprint 1 étape 5)
This commit is contained in:
parent
d0f77e04f9
commit
bf778a5a4d
3 changed files with 157 additions and 12 deletions
|
|
@ -4,22 +4,12 @@ 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'
|
||||
import { DashboardPage } from '@/features/dashboard/pages/DashboardPage'
|
||||
|
||||
const DesignSystemPage = import.meta.env.DEV
|
||||
? React.lazy(() => import('@/features/design-system/DesignSystemPage'))
|
||||
: () => null
|
||||
|
||||
function DashboardStub() {
|
||||
return (
|
||||
<main className="min-h-screen bg-canvas p-6">
|
||||
<h1 className="text-2xl font-semibold text-ink-1">Dashboard — stub</h1>
|
||||
<p className="mt-2 text-sm text-ink-3">
|
||||
Cette vue sera remplacée par DashboardPage au prochain lot du Sprint 1.
|
||||
</p>
|
||||
</main>
|
||||
)
|
||||
}
|
||||
|
||||
export function AppRouter() {
|
||||
return (
|
||||
<Routes>
|
||||
|
|
@ -30,7 +20,7 @@ export function AppRouter() {
|
|||
path="/dashboard"
|
||||
element={
|
||||
<ProtectedRoute>
|
||||
<DashboardStub />
|
||||
<DashboardPage />
|
||||
</ProtectedRoute>
|
||||
}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue