1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00

Fix the close button in the speed up and cancel popovers (#14356)

This commit is contained in:
Dan J Miller 2022-04-05 11:06:58 -02:30 committed by GitHub
parent d6df3700f7
commit fc4ae4ef61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -96,7 +96,7 @@ const CancelSpeedupPopover = () => {
: `🚀${t('speedUp')}`} : `🚀${t('speedUp')}`}
</> </>
} }
onClose={() => closeModal('cancelSpeedUpTransaction')} onClose={() => closeModal(['cancelSpeedUpTransaction'])}
className="cancel-speedup-popover" className="cancel-speedup-popover"
> >
<AppLoadingSpinner className="cancel-speedup-popover__spinner" /> <AppLoadingSpinner className="cancel-speedup-popover__spinner" />

View File

@ -44,7 +44,9 @@ const EditGasFeePopover = () => {
<Popover <Popover
title={t(popupTitle)} title={t(popupTitle)}
// below logic ensures that back button is visible only if there are other modals open before this. // below logic ensures that back button is visible only if there are other modals open before this.
onBack={openModalCount === 1 ? undefined : () => closeModal('editGasFee')} onBack={
openModalCount === 1 ? undefined : () => closeModal(['editGasFee'])
}
onClose={closeAllModals} onClose={closeAllModals}
className="edit-gas-fee-popover" className="edit-gas-fee-popover"
> >