diff --git a/src/components/WorkspaceConfirmationForm.tsx b/src/components/WorkspaceConfirmationForm.tsx index 650c0da1a595..47988f7a0a2a 100644 --- a/src/components/WorkspaceConfirmationForm.tsx +++ b/src/components/WorkspaceConfirmationForm.tsx @@ -5,6 +5,7 @@ import useCurrentUserPersonalDetails from '@hooks/useCurrentUserPersonalDetails' import {useMemoizedLazyExpensifyIcons} from '@hooks/useLazyAsset'; import useLocalize from '@hooks/useLocalize'; import useOnyx from '@hooks/useOnyx'; +import usePreferredPolicy from '@hooks/usePreferredPolicy'; import useThemeStyles from '@hooks/useThemeStyles'; import useWorkspaceConfirmationAvatar from '@hooks/useWorkspaceConfirmationAvatar'; import {clearDraftValues} from '@libs/actions/FormActions'; @@ -61,6 +62,7 @@ function WorkspaceConfirmationForm({onSubmit, policyOwnerEmail = '', onBackButto const styles = useThemeStyles(); const {translate} = useLocalize(); const {inputCallbackRef} = useAutoFocusInput(); + const {isRestrictedPolicyCreation} = usePreferredPolicy(); const validate = useCallback( (values: FormOnyxValues) => { @@ -128,7 +130,9 @@ function WorkspaceConfirmationForm({onSubmit, policyOwnerEmail = '', onBackButto keyboardShouldPersistTaps="always" > - {translate('workspace.emptyWorkspace.subtitle')} + + {isRestrictedPolicyCreation ? translate('workspace.emptyWorkspace.restrictedPolicySubtitle') : translate('workspace.emptyWorkspace.subtitle')} + { if (policy.automaticJoiningEnabled) { @@ -148,8 +151,8 @@ function BaseOnboardingWorkspaces({route, shouldUseNativeStyles}: BaseOnboarding shouldShowOfflineIndicator={isSmallScreenWidth} > {translate('onboarding.joinAWorkspace')} - {translate('onboarding.listOfWorkspaces')} + + {translate(isRestrictedPolicyCreation ? 'onboarding.domainWorkspaceRestriction.subtitle' : 'onboarding.listOfWorkspaces')} + } footerContent={