From a43181e2d4362d6fa1a67f49b2338ed700418f3a Mon Sep 17 00:00:00 2001 From: talhainvenxion Date: Tue, 14 Nov 2023 14:46:43 +0500 Subject: [PATCH] change url naming --- src/routes/routePaths.tsx | 8 ++++---- .../AuthenticatedSidebar/Menu/index.tsx | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/routes/routePaths.tsx b/src/routes/routePaths.tsx index db7d231b0..baee7a6c0 100644 --- a/src/routes/routePaths.tsx +++ b/src/routes/routePaths.tsx @@ -151,9 +151,9 @@ export const routePaths = { stacks: (type: string, id: TId, workspace: string): string => `/workspaces/${workspace}/components/${type}/${id}/stacks`, registerComponents: (type: string, workspace: string): string => - `/workspaces/${workspace}/registerComponents/${type}`, + `/workspaces/${workspace}/register-components/${type}`, configureComponent: (type: string, workspace: string, id: string): string => - `/workspaces/${workspace}/registerComponents/${type}/${id}/configuration`, + `/workspaces/${workspace}/register-components/${type}/${id}/configuration`, updateComponent: (type: string, id: string, workspace: string): string => `/workspaces/${workspace}/components/${type}/${id}/update-component`, }, @@ -185,9 +185,9 @@ export const routePaths = { list: (workspace: string): string => `/workspaces/${workspace}/connectors/list`, connectorTypes: (workspace: string): string => - `/workspaces/${workspace}/connector_types`, + `/workspaces/${workspace}/connector-types`, registerConnectors: (type: string, workspace: string): string => - `/workspaces/${workspace}/${type}/register_connector`, + `/workspaces/${workspace}/${type}/register-connector`, configuration: (id: TId, workspace: string): string => `/workspaces/${workspace}/connectors/${id}/configuration`, diff --git a/src/ui/layouts/common/layouts/AuthenticatedLayout/AuthenticatedSidebar/Menu/index.tsx b/src/ui/layouts/common/layouts/AuthenticatedLayout/AuthenticatedSidebar/Menu/index.tsx index 579d8833f..34d05b6ff 100644 --- a/src/ui/layouts/common/layouts/AuthenticatedLayout/AuthenticatedSidebar/Menu/index.tsx +++ b/src/ui/layouts/common/layouts/AuthenticatedLayout/AuthenticatedSidebar/Menu/index.tsx @@ -118,7 +118,7 @@ export const Menu: React.FC = () => { window.location.href?.includes('connectors')} + isActive={() => window.location.href?.includes('connector')} Icon={() => ( )}