From 4880940db8d8ea08dfe380c1ea29f84d031314e4 Mon Sep 17 00:00:00 2001 From: sdrejkarz <123745148+sdrejkarz@users.noreply.github.com> Date: Thu, 30 May 2024 17:40:44 +0200 Subject: [PATCH] chore: Simplify routing component (#579) --- packages/webapp/src/app/app.component.tsx | 89 ++++++++++++----------- packages/webapp/src/app/config/routes.ts | 2 +- 2 files changed, 47 insertions(+), 44 deletions(-) diff --git a/packages/webapp/src/app/app.component.tsx b/packages/webapp/src/app/app.component.tsx index 60003f46f..74de5ebeb 100644 --- a/packages/webapp/src/app/app.component.tsx +++ b/packages/webapp/src/app/app.component.tsx @@ -44,53 +44,56 @@ export const App = () => { }> } /> - - }> - } /> - } /> - } /> - } /> - - }> - } /> - }> - }> - } /> - } /> - - }> - }> - } /> - } /> - } - /> + + }> + } /> + } /> + } /> + } /> + + + }> + } /> + }> + }> + } /> + } /> - } /> - } /> - } /> + }> + }> + } /> + } /> + } + /> + + } /> + } /> + } /> + + } /> + } /> - } /> - } /> + } /> + } /> + } /> + } /> + } /> - } /> - } /> - } /> - } /> - } /> - - }> - } /> - } /> - } /> - } /> - - }> - } /> - - + }> + } /> + } /> + } /> + } /> + + + }> + } /> + + + } /> } /> } /> diff --git a/packages/webapp/src/app/config/routes.ts b/packages/webapp/src/app/config/routes.ts index 877bcac07..ff11f3317 100644 --- a/packages/webapp/src/app/config/routes.ts +++ b/packages/webapp/src/app/config/routes.ts @@ -7,7 +7,7 @@ import { RoutesConfig as GenerativeAIRoutesConfig } from '@sb/webapp-generative- import { RoutesConfig as TenantsRoutesConfig } from '@sb/webapp-tenants/config/routes'; export const LANG_PREFIX = `/:lang?/*`; -export const TENANT_PREFIX = `/:lang?/:tenantId?/*`; +export const TENANT_PREFIX = `:tenantId?/*`; export const RoutesConfig = { ...CoreRoutesConfig,