1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-27 11:02:16 +01:00

feat: hide old change request overview if the flag is active.

This commit is contained in:
Thomas Heartman 2024-10-31 09:00:46 +01:00
parent 97ad814adf
commit ad3c7295be
No known key found for this signature in database
GPG Key ID: BD1F880DAED1EE78

View File

@ -51,10 +51,14 @@ const ProjectOverview: FC = () => {
setLastViewed(projectId);
}, [projectId, setLastViewed]);
const hideChangeRequestOverview = useUiFlag('simplifyProjectOverview');
return (
<StyledContainer key={projectId}>
<StyledContentContainer>
<ProjectOverviewChangeRequests project={projectId} />
{hideChangeRequestOverview ? null : (
<ProjectOverviewChangeRequests project={projectId} />
)}
<ConditionallyRender
condition={outdatedSdksBannerEnabled}
show={<OutdatedSdksBanner project={projectId} />}