mirror of
https://github.com/Unleash/unleash.git
synced 2025-03-14 00:15:52 +01:00
feat: hide archive tab when simplify enabled (#8611)
No archive anymore 
This commit is contained in:
parent
61bd3972ba
commit
2934f85743
@ -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',
|
||||
},
|
||||
...(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 = () => {
|
||||
</span>
|
||||
}
|
||||
/>
|
||||
{useActionableChangeRequestIndicator &&
|
||||
{simplifyProjectOverview &&
|
||||
tab.name ===
|
||||
'change-request' && (
|
||||
<ActionableChangeRequestsIndicator />
|
||||
|
Loading…
Reference in New Issue
Block a user