1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-13 13:48:59 +02:00

[Gitar] Updating TSX files

This commit is contained in:
Gitar 2024-09-06 10:36:52 +00:00
parent 7bd5f3b100
commit 19c4e3d77f
2 changed files with 2 additions and 11 deletions

View File

@ -13,9 +13,7 @@ const setupApi = (outdatedSdks: OutdatedSdksSchema) => {
outdatedSdks,
);
testServerRoute(server, '/api/admin/ui-config', {
flags: {
outdatedSdksBanner: true,
},
flags: {},
});
};

View File

@ -9,8 +9,6 @@ import { usePageTitle } from 'hooks/usePageTitle';
import { useLastViewedProject } from 'hooks/useLastViewedProject';
import { ProjectOverviewChangeRequests } from './ProjectOverviewChangeRequests';
import { OutdatedSdksBanner } from '../../banners/OutdatedSdksBanner/OutdatedSdksBanner';
import { useUiFlag } from 'hooks/useUiFlag';
import { ConditionallyRender } from '../../common/ConditionallyRender/ConditionallyRender';
const refreshInterval = 15 * 1000;
@ -39,8 +37,6 @@ const ProjectOverview: FC = () => {
const projectId = useRequiredPathParam('projectId');
const projectName = useProjectOverviewNameOrId(projectId);
const outdatedSdksBannerEnabled = useUiFlag('outdatedSdksBanner');
const { project } = useProjectOverview(projectId, {
refreshInterval,
});
@ -55,10 +51,7 @@ const ProjectOverview: FC = () => {
<StyledContainer key={projectId}>
<StyledContentContainer>
<ProjectOverviewChangeRequests project={projectId} />
<ConditionallyRender
condition={outdatedSdksBannerEnabled}
show={<OutdatedSdksBanner project={projectId} />}
/>
<OutdatedSdksBanner project={projectId} />
<StyledProjectToggles>
<ProjectFeatureToggles