Skip to content

Commit

Permalink
fix: type for feature flags
Browse files Browse the repository at this point in the history
  • Loading branch information
joshsny committed Jan 22, 2025
1 parent 6dd777d commit ee3f246
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions frontend/src/scenes/feature-flags/FeatureFlag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -511,17 +511,19 @@ export function FeatureFlag({ id }: { id?: string } = {}): JSX.Element {
overlay={
<>
{featureFlags[FEATURE_FLAGS.FEATURE_FLAG_COHORT_CREATION] && (
<LemonButton
loading={newCohortLoading}
onClick={() => {
createStaticCohort()
}}
fullWidth
>
Create Cohort
</LemonButton>
<>
<LemonButton
loading={newCohortLoading}
onClick={() => {
createStaticCohort()
}}
fullWidth
>
Create Cohort
</LemonButton>
<LemonDivider />
</>
)}
<LemonDivider />
<LemonButton
data-attr={
featureFlag.deleted
Expand All @@ -545,8 +547,9 @@ export function FeatureFlag({ id }: { id?: string } = {}): JSX.Element {
: null
}
>
<span>{featureFlag.deleted ? 'Restore' : 'Delete'}</span>{' '}
<span>feature flag</span>
<span>
{featureFlag.deleted ? 'Restore' : 'Delete'} feature flag
</span>
</LemonButton>
</>
}
Expand Down

0 comments on commit ee3f246

Please sign in to comment.