@@ -26,6 +26,7 @@ import { LoadingButton } from "@podkit/buttons/LoadingButton";
2626import { useOrgSettingsQuery } from "../data/organizations/org-settings-query" ;
2727import Alert from "../components/Alert" ;
2828import { GETTING_STARTED_DISMISSAL_KEY } from "../workspaces/Workspaces" ;
29+ import { useFeatureFlag } from "../data/featureflag-query" ;
2930
3031export type IDEChangedTrackLocation = "workspace_list" | "workspace_start" | "preferences" ;
3132
@@ -45,6 +46,8 @@ export default function Preferences() {
4546 const [ timeoutUpdating , setTimeoutUpdating ] = useState ( false ) ;
4647 const [ creationError , setCreationError ] = useState < Error > ( ) ;
4748
49+ const isEnterpriseOnboardingEnabled = useFeatureFlag ( "enterprise_onboarding_enabled" ) ;
50+
4851 const saveDotfileRepo = useCallback (
4952 async ( e ) => {
5053 e . preventDefault ( ) ;
@@ -161,11 +164,15 @@ export default function Preferences() {
161164 Reset Options
162165 </ Button >
163166
164- < Heading3 className = "mt-12" > Organization onboarding</ Heading3 >
165- < Subheading > If you dismissed the onboarding process, you can restart it here.</ Subheading >
166- < Button className = "mt-4" variant = "secondary" onClick = { restartOrgOnboarding } >
167- Restart Onboarding
168- </ Button >
167+ { isEnterpriseOnboardingEnabled && (
168+ < >
169+ < Heading3 className = "mt-12" > Organization onboarding</ Heading3 >
170+ < Subheading > If you dismissed the onboarding process, you can restart it here.</ Subheading >
171+ < Button className = "mt-4" variant = "secondary" onClick = { restartOrgOnboarding } >
172+ Restart Onboarding
173+ </ Button >
174+ </ >
175+ ) }
169176
170177 < ThemeSelector className = "mt-12" />
171178
0 commit comments