diff --git a/frontend/src/component/menu/routes.ts b/frontend/src/component/menu/routes.ts index 07090d77c119..4dda559f0029 100644 --- a/frontend/src/component/menu/routes.ts +++ b/frontend/src/component/menu/routes.ts @@ -432,7 +432,6 @@ export const routes: IRoute[] = [ type: 'protected', menu: {}, }, - // Admin { path: '/admin/*', diff --git a/frontend/src/component/project/Project/Project.tsx b/frontend/src/component/project/Project/Project.tsx index 2d08492a3f36..0252fc24c793 100644 --- a/frontend/src/component/project/Project/Project.tsx +++ b/frontend/src/component/project/Project/Project.tsx @@ -121,9 +121,7 @@ export const Project = () => { const basePath = `/projects/${projectId}`; const projectName = project?.name || projectId; const { favorite, unfavorite } = useFavoriteProjectsApi(); - const useActionableChangeRequestIndicator = useUiFlag( - 'simplifyProjectOverview', - ); + const simplifyProjectOverview = useUiFlag('simplifyProjectOverview'); const [showDelDialog, setShowDelDialog] = useState(false); @@ -148,11 +146,15 @@ export const Project = () => { path: `${basePath}/health`, name: 'health', }, - { - title: 'Archived flags', - path: `${basePath}/archive`, - name: 'archive', - }, + ...(simplifyProjectOverview + ? [] + : [ + { + title: 'Archived flags', + path: `${basePath}/archive`, + name: 'archive', + } as ITab, + ]), { title: 'Change requests', path: `${basePath}/change-requests`, @@ -327,7 +329,7 @@ export const Project = () => { } /> - {useActionableChangeRequestIndicator && + {simplifyProjectOverview && tab.name === 'change-request' && (