Skip to content

Commit

Permalink
fix: project overview refactor flag (#5110)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tymek authored Oct 20, 2023
1 parent 6fab663 commit f1b8d9b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/component/project/Project/ProjectOverview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { useRequiredPathParam } from 'hooks/useRequiredPathParam';
import { useLastViewedProject } from 'hooks/useLastViewedProject';
import { ProjectStats } from './ProjectStats/ProjectStats';
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
import { useUiFlag } from 'hooks/useUiFlag';

const refreshInterval = 15 * 1000;

Expand Down Expand Up @@ -43,6 +44,7 @@ const ProjectOverview = () => {
project;
usePageTitle(`Project overview – ${projectName}`);
const { setLastViewed } = useLastViewedProject();
const featureSwitchRefactor = useUiFlag('featureSwitchRefactor');

useEffect(() => {
setLastViewed(projectId);
Expand All @@ -62,7 +64,7 @@ const ProjectOverview = () => {
<ProjectStats stats={project.stats} />
<StyledProjectToggles>
<ConditionallyRender
condition={true}
condition={Boolean(featureSwitchRefactor)}
show={() => (
<ProjectFeatureToggles
key={loading ? 'loading' : 'ready'}
Expand Down

0 comments on commit f1b8d9b

Please sign in to comment.