Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { useFeatureIsOn } from '@growthbook/growthbook-react'

import { featureFlags } from 'formsg-shared/constants'

/**
* Single source of truth for reading the `workflow-builder-redesign` GrowthBook
* flag. Every workflow builder redesign seam should gate on this hook so the
* flag can be retired from one place once the redesign fully rolls out.
*/
export const useIsWorkflowBuilderRedesign = (): boolean =>
useFeatureIsOn(featureFlags.workflowBuilderRedesign)
1 change: 1 addition & 0 deletions packages/shared/constants/feature-flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export const featureFlags = {
enablePaperTrackingSetUpPage: 'enable-paper-tracking-set-up-page' as const,
sidebarNavLabels: 'enable-sidebar-nav-labels' as const,
fiveStarAdminRating: '5star-admin-rating' as const,
workflowBuilderRedesign: 'workflow-builder-redesign' as const,
}

export enum AdminEmailPdfFeatureValue {
Expand Down