From a5322ab57d2c019e86c0fbdd7d20cb4b2c0c3aca Mon Sep 17 00:00:00 2001 From: Rushat Gabhane Date: Wed, 22 May 2024 17:05:24 +0530 Subject: [PATCH 1/5] rm header overflow menu --- .../workspace/accounting/PolicyAccountingPage.tsx | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/pages/workspace/accounting/PolicyAccountingPage.tsx b/src/pages/workspace/accounting/PolicyAccountingPage.tsx index d6ef27c7b00d..9caa216d9541 100644 --- a/src/pages/workspace/accounting/PolicyAccountingPage.tsx +++ b/src/pages/workspace/accounting/PolicyAccountingPage.tsx @@ -292,21 +292,6 @@ function PolicyAccountingPage({policy, connectionSyncProgress, isConnectionDataF accountingIntegrations, ]); - const headerThreeDotsMenuItems: ThreeDotsMenuProps['menuItems'] = [ - { - icon: Expensicons.Key, - shouldShowRightIcon: true, - iconRight: Expensicons.NewWindow, - text: translate('workspace.accounting.enterCredentials'), - onSelected: () => {}, - }, - { - icon: Expensicons.Trashcan, - text: translate('workspace.accounting.disconnect'), - onSelected: () => setIsDisconnectModalOpen(true), - }, - ]; - return ( Date: Wed, 22 May 2024 17:05:59 +0530 Subject: [PATCH 2/5] rm header overflow menu --- src/pages/workspace/accounting/PolicyAccountingPage.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pages/workspace/accounting/PolicyAccountingPage.tsx b/src/pages/workspace/accounting/PolicyAccountingPage.tsx index 9caa216d9541..c6574895f0d7 100644 --- a/src/pages/workspace/accounting/PolicyAccountingPage.tsx +++ b/src/pages/workspace/accounting/PolicyAccountingPage.tsx @@ -309,7 +309,6 @@ function PolicyAccountingPage({policy, connectionSyncProgress, isConnectionDataF icon={Illustrations.Accounting} shouldShowThreeDotsButton threeDotsAnchorPosition={styles.threeDotsPopoverOffsetNoCloseButton(windowWidth)} - threeDotsMenuItems={headerThreeDotsMenuItems} /> From f47f063bbca6283bbe3dc71f6730d688468e6b9c Mon Sep 17 00:00:00 2001 From: Rushat Gabhane Date: Wed, 22 May 2024 17:06:25 +0530 Subject: [PATCH 3/5] hide 3dot --- src/pages/workspace/accounting/PolicyAccountingPage.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pages/workspace/accounting/PolicyAccountingPage.tsx b/src/pages/workspace/accounting/PolicyAccountingPage.tsx index c6574895f0d7..612336ab4259 100644 --- a/src/pages/workspace/accounting/PolicyAccountingPage.tsx +++ b/src/pages/workspace/accounting/PolicyAccountingPage.tsx @@ -307,7 +307,6 @@ function PolicyAccountingPage({policy, connectionSyncProgress, isConnectionDataF title={translate('workspace.common.accounting')} shouldShowBackButton={isSmallScreenWidth} icon={Illustrations.Accounting} - shouldShowThreeDotsButton threeDotsAnchorPosition={styles.threeDotsPopoverOffsetNoCloseButton(windowWidth)} /> From 96b58cb952eb934d798bde7e017de5a33674163a Mon Sep 17 00:00:00 2001 From: Rushat Gabhane Date: Wed, 22 May 2024 17:06:56 +0530 Subject: [PATCH 4/5] hide 3dot --- src/libs/Permissions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/Permissions.ts b/src/libs/Permissions.ts index 45551fe1cad9..e24d03ec62ff 100644 --- a/src/libs/Permissions.ts +++ b/src/libs/Permissions.ts @@ -4,7 +4,7 @@ import type {IOUType} from '@src/CONST'; import type Beta from '@src/types/onyx/Beta'; function canUseAllBetas(betas: OnyxEntry): boolean { - return !!betas?.includes(CONST.BETAS.ALL); + return true; } function canUseChronos(betas: OnyxEntry): boolean { From a3e4f700be70ab635ff1bb4fb1c9f6b287a4152f Mon Sep 17 00:00:00 2001 From: Rushat Gabhane Date: Wed, 22 May 2024 17:07:11 +0530 Subject: [PATCH 5/5] undo all beta --- src/libs/Permissions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/Permissions.ts b/src/libs/Permissions.ts index e24d03ec62ff..45551fe1cad9 100644 --- a/src/libs/Permissions.ts +++ b/src/libs/Permissions.ts @@ -4,7 +4,7 @@ import type {IOUType} from '@src/CONST'; import type Beta from '@src/types/onyx/Beta'; function canUseAllBetas(betas: OnyxEntry): boolean { - return true; + return !!betas?.includes(CONST.BETAS.ALL); } function canUseChronos(betas: OnyxEntry): boolean {