Skip to content

Commit 8eb0cd2

Browse files
PROD-2077 #comment remove unnecessary tool link #time 5m
1 parent e8f6793 commit 8eb0cd2

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src-ts/header/tool-selectors/tool-selectors-wide/ToolSelectorsWide.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const ToolSelectorsWide: FC<{}> = () => {
1010
const { toolsRoutes }: RouteContextData = useContext(routeContext)
1111

1212
const selectors: Array<JSX.Element> = toolsRoutes
13+
.filter(route => !route.hide)
1314
.map(route => (
1415
<ToolSelectorWide
1516
key={route.title}

src-ts/lib/route-provider/platform-route.model.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export interface PlatformRoute {
44
children: Array<PlatformRoute>
55
element: JSX.Element
66
enabled: boolean
7+
hide?: boolean
78
icon?: FC<SVGProps<SVGSVGElement>>
89
requireAuth?: boolean
910
route: string

src-ts/tools/work/work.routes.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export const workRoutes: Array<PlatformRoute> = [
4545
children: [],
4646
element: <Navigate to={workRootRoute} />,
4747
enabled: true,
48+
hide: true,
4849
route: `${selfServiceRootRoute}/dashboard`,
4950
title: 'Obsolete Self Service Dashboard',
5051
},

0 commit comments

Comments
 (0)