@@ -30,7 +30,6 @@ import useLocalize from '@hooks/useLocalize';
3030import useNetwork from '@hooks/useNetwork' ;
3131import useOnyx from '@hooks/useOnyx' ;
3232import usePayAndDowngrade from '@hooks/usePayAndDowngrade' ;
33- import usePermissions from '@hooks/usePermissions' ;
3433import useResponsiveLayout from '@hooks/useResponsiveLayout' ;
3534import useSearchResults from '@hooks/useSearchResults' ;
3635import useStyleUtils from '@hooks/useStyleUtils' ;
@@ -105,7 +104,6 @@ function WorkspacesListPage() {
105104 const { isOffline} = useNetwork ( ) ;
106105 const isFocused = useIsFocused ( ) ;
107106 const { shouldUseNarrowLayout, isMediumScreenWidth} = useResponsiveLayout ( ) ;
108- const { isBetaEnabled} = usePermissions ( ) ;
109107 const [ allConnectionSyncProgresses ] = useOnyx ( ONYXKEYS . COLLECTION . POLICY_CONNECTION_SYNC_PROGRESS , { canBeMissing : true } ) ;
110108 const [ policies ] = useOnyx ( ONYXKEYS . COLLECTION . POLICY , { canBeMissing : true } ) ;
111109 const [ reimbursementAccount ] = useOnyx ( ONYXKEYS . REIMBURSEMENT_ACCOUNT , { canBeMissing : true } ) ;
@@ -117,7 +115,6 @@ function WorkspacesListPage() {
117115 const route = useRoute < PlatformStackRouteProp < AuthScreensParamList , typeof SCREENS . WORKSPACES_LIST > > ( ) ;
118116 const [ fundList ] = useOnyx ( ONYXKEYS . FUND_LIST , { canBeMissing : true } ) ;
119117 const [ duplicateWorkspace ] = useOnyx ( ONYXKEYS . DUPLICATE_WORKSPACE , { canBeMissing : false } ) ;
120- const isDuplicatedWorkspaceEnabled = isBetaEnabled ( CONST . BETAS . DUPLICATE_WORKSPACE ) ;
121118 const [ myDomainSecurityGroups ] = useOnyx ( ONYXKEYS . MY_DOMAIN_SECURITY_GROUPS , { canBeMissing : true } ) ;
122119 const [ securityGroups ] = useOnyx ( ONYXKEYS . COLLECTION . SECURITY_GROUP , { canBeMissing : true } ) ;
123120
@@ -240,7 +237,7 @@ function WorkspacesListPage() {
240237 } ) ;
241238 }
242239
243- if ( isAdmin && isDuplicatedWorkspaceEnabled ) {
240+ if ( isAdmin ) {
244241 threeDotsMenuItems . push ( {
245242 icon : Expensicons . Copy ,
246243 text : translate ( 'workspace.common.duplicateWorkspace' ) ,
@@ -347,7 +344,6 @@ function WorkspacesListPage() {
347344 duplicateWorkspace ?. policyID ,
348345 translate ,
349346 policies ,
350- isDuplicatedWorkspaceEnabled ,
351347 canUserSetWorkspaceAsDefault ,
352348 fundList ,
353349 styles . mb2 ,
0 commit comments