Skip to content

Commit 987ad1e

Browse files
fix: ff timeline in framework tab
[dev] [Marfuen] mariano/feature-flag-compliance-timeline
1 parent 817bbe2 commit 987ad1e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

apps/app/src/app/(app)/[orgId]/frameworks/[frameworkInstanceId]/components/FrameworkTimeline.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
CircleDash,
88
Time,
99
} from '@trycompai/design-system/icons';
10+
import { useFeatureFlag } from '@trycompai/analytics';
1011
import { useState } from 'react';
1112
import {
1213
useTimelines,
@@ -46,8 +47,11 @@ function getTimeRemaining(endDate: string | null): string | null {
4647
export function FrameworkTimeline({
4748
frameworkInstanceId,
4849
}: FrameworkTimelineProps) {
50+
const isTimelineEnabled = useFeatureFlag('is-timeline-enabled');
4951
const { timelines } = useTimelines();
5052

53+
if (!isTimelineEnabled) return null;
54+
5155
const timeline = timelines.find(
5256
(t) => t.frameworkInstanceId === frameworkInstanceId,
5357
);

0 commit comments

Comments
 (0)