mirror of
https://github.com/Unleash/unleash.git
synced 2025-08-27 13:49:10 +02:00
[Gitar] Updating TSX files
This commit is contained in:
parent
7bd5f3b100
commit
19c4e3d77f
@ -13,9 +13,7 @@ const setupApi = (outdatedSdks: OutdatedSdksSchema) => {
|
|||||||
outdatedSdks,
|
outdatedSdks,
|
||||||
);
|
);
|
||||||
testServerRoute(server, '/api/admin/ui-config', {
|
testServerRoute(server, '/api/admin/ui-config', {
|
||||||
flags: {
|
flags: {},
|
||||||
outdatedSdksBanner: true,
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -9,8 +9,6 @@ import { usePageTitle } from 'hooks/usePageTitle';
|
|||||||
import { useLastViewedProject } from 'hooks/useLastViewedProject';
|
import { useLastViewedProject } from 'hooks/useLastViewedProject';
|
||||||
import { ProjectOverviewChangeRequests } from './ProjectOverviewChangeRequests';
|
import { ProjectOverviewChangeRequests } from './ProjectOverviewChangeRequests';
|
||||||
import { OutdatedSdksBanner } from '../../banners/OutdatedSdksBanner/OutdatedSdksBanner';
|
import { OutdatedSdksBanner } from '../../banners/OutdatedSdksBanner/OutdatedSdksBanner';
|
||||||
import { useUiFlag } from 'hooks/useUiFlag';
|
|
||||||
import { ConditionallyRender } from '../../common/ConditionallyRender/ConditionallyRender';
|
|
||||||
|
|
||||||
const refreshInterval = 15 * 1000;
|
const refreshInterval = 15 * 1000;
|
||||||
|
|
||||||
@ -39,8 +37,6 @@ const ProjectOverview: FC = () => {
|
|||||||
const projectId = useRequiredPathParam('projectId');
|
const projectId = useRequiredPathParam('projectId');
|
||||||
const projectName = useProjectOverviewNameOrId(projectId);
|
const projectName = useProjectOverviewNameOrId(projectId);
|
||||||
|
|
||||||
const outdatedSdksBannerEnabled = useUiFlag('outdatedSdksBanner');
|
|
||||||
|
|
||||||
const { project } = useProjectOverview(projectId, {
|
const { project } = useProjectOverview(projectId, {
|
||||||
refreshInterval,
|
refreshInterval,
|
||||||
});
|
});
|
||||||
@ -55,10 +51,7 @@ const ProjectOverview: FC = () => {
|
|||||||
<StyledContainer key={projectId}>
|
<StyledContainer key={projectId}>
|
||||||
<StyledContentContainer>
|
<StyledContentContainer>
|
||||||
<ProjectOverviewChangeRequests project={projectId} />
|
<ProjectOverviewChangeRequests project={projectId} />
|
||||||
<ConditionallyRender
|
<OutdatedSdksBanner project={projectId} />
|
||||||
condition={outdatedSdksBannerEnabled}
|
|
||||||
show={<OutdatedSdksBanner project={projectId} />}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<StyledProjectToggles>
|
<StyledProjectToggles>
|
||||||
<ProjectFeatureToggles
|
<ProjectFeatureToggles
|
||||||
|
Loading…
Reference in New Issue
Block a user