From 7ccf0e5b29cbe0cbd447a07e2ed4e0e1c994bda5 Mon Sep 17 00:00:00 2001 From: Arthur Belleville Date: Tue, 1 Apr 2025 22:05:54 +0200 Subject: [PATCH] Refactor with Outlet --- ui/src/App.tsx | 40 ++++++---------------------- ui/src/components/ProtectedRoute.tsx | 9 +++---- ui/src/components/PublicRoute.tsx | 12 +++------ 3 files changed, 16 insertions(+), 45 deletions(-) diff --git a/ui/src/App.tsx b/ui/src/App.tsx index 0dbd599..1236ac7 100644 --- a/ui/src/App.tsx +++ b/ui/src/App.tsx @@ -24,40 +24,16 @@ export const App = () => { )} > - - - - } - /> + }> + } /> + } /> } /> - - - - } - /> - - - - } - /> - - - - } - /> + }> + } /> + } /> + } /> + } />