Skip to content

Commit

Permalink
show loading on submit button after confirmed
Browse files Browse the repository at this point in the history
  • Loading branch information
FitseTLT committed Feb 6, 2025
1 parent 6ea5d42 commit 294962f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/MoneyRequestConfirmationList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,7 @@ function MoneyRequestConfirmationList({
}}
enterKeyEventListenerPriority={1}
useKeyboardShortcuts
isLoading={isConfirmed}
/>
) : (
<ButtonWithDropdownMenu
Expand All @@ -967,6 +968,7 @@ function MoneyRequestConfirmationList({
options={splitOrRequestOptions}
buttonSize={CONST.DROPDOWN_BUTTON_SIZE.LARGE}
enterKeyEventListenerPriority={1}
isLoading={isConfirmed}
useKeyboardShortcuts
/>
);
Expand All @@ -984,7 +986,7 @@ function MoneyRequestConfirmationList({
{button}
</>
);
}, [isReadOnly, iouType, confirm, bankAccountRoute, iouCurrencyCode, policyID, splitOrRequestOptions, styles.ph1, styles.mb2, errorMessage]);
}, [isReadOnly, iouType, confirm, isConfirmed, bankAccountRoute, iouCurrencyCode, policyID, splitOrRequestOptions, styles.ph1, styles.mb2, errorMessage]);

const listFooterContent = (
<MoneyRequestConfirmationListFooter
Expand Down

0 comments on commit 294962f

Please sign in to comment.