From 458fa43d34e936b73f39b858906b65a9f7f48705 Mon Sep 17 00:00:00 2001 From: Joel Jeremy Marquez Date: Sat, 13 Apr 2024 08:16:40 -0700 Subject: [PATCH] Code review update --- .../components/mobile/MobileBackButton.tsx | 1 + .../mobile/accounts/AccountTransactions.jsx | 40 ++++++++----------- .../transactions/AddTransactionButton.tsx | 12 ++---- .../mobile/transactions/ListBox.jsx | 2 +- 4 files changed, 22 insertions(+), 33 deletions(-) diff --git a/packages/desktop-client/src/components/mobile/MobileBackButton.tsx b/packages/desktop-client/src/components/mobile/MobileBackButton.tsx index 6128ba3daee..f563dcab834 100644 --- a/packages/desktop-client/src/components/mobile/MobileBackButton.tsx +++ b/packages/desktop-client/src/components/mobile/MobileBackButton.tsx @@ -15,6 +15,7 @@ export function MobileBackButton({ style }: MobileBackButtonProps) { return ( ); } diff --git a/packages/desktop-client/src/components/mobile/transactions/ListBox.jsx b/packages/desktop-client/src/components/mobile/transactions/ListBox.jsx index 028c1787e3e..402a950d8d3 100644 --- a/packages/desktop-client/src/components/mobile/transactions/ListBox.jsx +++ b/packages/desktop-client/src/components/mobile/transactions/ListBox.jsx @@ -15,7 +15,7 @@ export function ListBox(props) { const { loadMore } = props; const { hasScrolledToBottom } = useScroll(); - const scrolledToBottom = hasScrolledToBottom(); + const scrolledToBottom = hasScrolledToBottom(5); const prevScrolledToBottom = usePrevious(scrolledToBottom); if (!prevScrolledToBottom && scrolledToBottom) {