From d59caba14774fb2575e2419710dd8d6e1be3b07e Mon Sep 17 00:00:00 2001 From: Max Chopart Date: Thu, 16 May 2024 21:42:33 +0200 Subject: [PATCH] [Upd #126] Put navigation within OIDC Provider --- src/components/routes/AppRoutes.tsx | 35 ++++++++++++++++++----------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/src/components/routes/AppRoutes.tsx b/src/components/routes/AppRoutes.tsx index ac949e2e..c0f95689 100644 --- a/src/components/routes/AppRoutes.tsx +++ b/src/components/routes/AppRoutes.tsx @@ -98,20 +98,29 @@ const AppRoutes = () => { return ( - - - } /> - } /> + + } /> + } /> - {routes.map((r) => { - if (isUsingOidcAuth()) { - return {r.element}} />; - } else { - return ; - } - })} - - + {routes.map((r) => { + if (isUsingOidcAuth()) { + return ( + + {r.element} + + } + /> + ); + } else { + return ( + {getElement(r.path, r.element)}} /> + ); + } + })} + );