From 544539a87bbe27e89db4c9a3fee1c14952d2da02 Mon Sep 17 00:00:00 2001 From: dukenv0307 Date: Thu, 20 Mar 2025 00:05:06 +0700 Subject: [PATCH 1/2] Wallet bank account popover has extra space --- src/pages/settings/Wallet/WalletPage/WalletPage.tsx | 4 ++-- src/pages/workspace/invoices/WorkspaceInvoiceVBASection.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/settings/Wallet/WalletPage/WalletPage.tsx b/src/pages/settings/Wallet/WalletPage/WalletPage.tsx index 2180b8f50a219..0f99ba6460208 100644 --- a/src/pages/settings/Wallet/WalletPage/WalletPage.tsx +++ b/src/pages/settings/Wallet/WalletPage/WalletPage.tsx @@ -611,7 +611,7 @@ function WalletPage({shouldListenForResize = false}: WalletPageProps) { anchorRef={paymentMethodButtonRef as RefObject} > {!showConfirmDeleteModal && ( - + {isPopoverBottomMount && ( } > - + {isPopoverBottomMount && ( } > {!showConfirmDeleteModal && ( - + {isPopoverBottomMount && ( Date: Thu, 20 Mar 2025 00:40:05 +0700 Subject: [PATCH 2/2] clean code --- .../settings/Wallet/WalletPage/WalletPage.tsx | 22 +++++++++++++++++-- .../invoices/WorkspaceInvoiceVBASection.tsx | 11 +++++++++- 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/src/pages/settings/Wallet/WalletPage/WalletPage.tsx b/src/pages/settings/Wallet/WalletPage/WalletPage.tsx index 0f99ba6460208..ceb16efec8724 100644 --- a/src/pages/settings/Wallet/WalletPage/WalletPage.tsx +++ b/src/pages/settings/Wallet/WalletPage/WalletPage.tsx @@ -611,7 +611,16 @@ function WalletPage({shouldListenForResize = false}: WalletPageProps) { anchorRef={paymentMethodButtonRef as RefObject} > {!showConfirmDeleteModal && ( - + {isPopoverBottomMount && ( } > - + {isPopoverBottomMount && ( } > {!showConfirmDeleteModal && ( - + {isPopoverBottomMount && (