From 115730f2389678a312d6bbb534b9a71bb57580cf Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Fri, 15 Mar 2024 13:03:09 -0600 Subject: [PATCH] fix right caret and routes --- src/ROUTES.ts | 12 ++++++------ .../workspace/categories/CategorySettingsPage.tsx | 1 + .../workspace/tags/WorkspaceTagsSettingsPage.tsx | 1 + 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/ROUTES.ts b/src/ROUTES.ts index b62785cc1e7d..1bcf6fc02032 100644 --- a/src/ROUTES.ts +++ b/src/ROUTES.ts @@ -570,8 +570,8 @@ const ROUTES = { getRoute: (policyID: string) => `settings/workspaces/${policyID}/categories/new` as const, }, WORKSPACE_CATEGORY_EDIT: { - route: 'workspace/:policyID/categories/:categoryName/edit', - getRoute: (policyID: string, categoryName: string) => `workspace/${policyID}/categories/${encodeURIComponent(categoryName)}/edit` as const, + route: 'settings/workspaces/:policyID/categories/:categoryName/edit', + getRoute: (policyID: string, categoryName: string) => `settings/workspaces/${policyID}/categories/${encodeURIComponent(categoryName)}/edit` as const, }, WORKSPACE_TAGS: { route: 'settings/workspaces/:policyID/tags', @@ -606,12 +606,12 @@ const ROUTES = { getRoute: (policyID: string, accountID: number, backTo?: string) => getUrlWithBackToParam(`settings/workspaces/${policyID}/members/${accountID}/role-selection`, backTo), }, WORKSPACE_DISTANCE_RATES: { - route: 'workspace/:policyID/distance-rates', - getRoute: (policyID: string) => `workspace/${policyID}/distance-rates` as const, + route: 'settings/workspaces/:policyID/distance-rates', + getRoute: (policyID: string) => `settings/workspaces/${policyID}/distance-rates` as const, }, WORKSPACE_CREATE_DISTANCE_RATE: { - route: 'workspace/:policyID/distance-rates/new', - getRoute: (policyID: string) => `workspace/${policyID}/distance-rates/new` as const, + route: 'settings/workspaces/:policyID/distance-rates/new', + getRoute: (policyID: string) => `settings/workspaces/${policyID}/distance-rates/new` as const, }, // Referral program promotion REFERRAL_DETAILS_MODAL: { diff --git a/src/pages/workspace/categories/CategorySettingsPage.tsx b/src/pages/workspace/categories/CategorySettingsPage.tsx index 8aad48fd94a7..7300f7c5a9d4 100644 --- a/src/pages/workspace/categories/CategorySettingsPage.tsx +++ b/src/pages/workspace/categories/CategorySettingsPage.tsx @@ -80,6 +80,7 @@ function CategorySettingsPage({route, policyCategories}: CategorySettingsPagePro title={policyCategory.name} description={translate(`workspace.categories.categoryName`)} onPress={navigateToEditCategory} + shouldShowRightIcon /> diff --git a/src/pages/workspace/tags/WorkspaceTagsSettingsPage.tsx b/src/pages/workspace/tags/WorkspaceTagsSettingsPage.tsx index deac804980ea..67b033b68f72 100644 --- a/src/pages/workspace/tags/WorkspaceTagsSettingsPage.tsx +++ b/src/pages/workspace/tags/WorkspaceTagsSettingsPage.tsx @@ -76,6 +76,7 @@ function WorkspaceTagsSettingsPage({route, policyTags}: WorkspaceTagsSettingsPag title={policyTagName} description={translate(`workspace.tags.customTagName`)} onPress={() => Navigation.navigate(ROUTES.WORKSPACE_EDIT_TAGS.getRoute(route.params.policyID))} + shouldShowRightIcon />