Skip to content

Commit

Permalink
add shouldBeBlocked for QuickbooksDesktopExportPage
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhenjaHorbach committed Oct 7, 2024
1 parent 256a747 commit 082240d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,17 @@ function QuickbooksDesktopExportPage({policy}: WithPolicyConnectionsProps) {
},
];

const accessVariants = canUseNewDotQBD ? [] : [CONST.POLICY.ACCESS_VARIANTS.ADMIN];

return (
<ConnectionLayout
displayName={QuickbooksDesktopExportPage.displayName}
headerTitle="workspace.accounting.export"
title="workspace.qbd.exportDescription"
accessVariants={accessVariants}
accessVariants={[CONST.POLICY.ACCESS_VARIANTS.ADMIN]}
policyID={policyID}
featureName={CONST.POLICY.MORE_FEATURES.ARE_CONNECTIONS_ENABLED}
contentContainerStyle={styles.pb2}
titleStyle={styles.ph5}
shouldBeBlocked={!canUseNewDotQBD} // TODO: remove it once the QBD beta is done
connectionName={CONST.POLICY.CONNECTIONS.NAME.QBO} // TODO: should be updated to use the new connection
onBackButtonPress={() => Navigation.goBack(ROUTES.POLICY_ACCOUNTING.getRoute(policyID))}
>
Expand Down

0 comments on commit 082240d

Please sign in to comment.