Skip to content

Commit

Permalink
feat: fix for enter element to be picked in the dom
Browse files Browse the repository at this point in the history
  • Loading branch information
VanessaPC committed Apr 18, 2024
1 parent d7d5505 commit f8337aa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
@@ -1,3 +1,4 @@
/* eslint-disable no-lonely-if */
/* eslint-disable sonarjs/no-duplicate-string */
import { walletRoutePaths } from '@routes/wallet-paths';
import { useEffect } from 'react';
Expand Down
Expand Up @@ -15,6 +15,7 @@ interface WarningModalProps {
confirmLabel?: React.ReactNode;
confirmCustomClassName?: string;
dataTestId?: string;
destroyOnClose?: boolean;
}

const modalWidth = 480;
Expand All @@ -30,7 +31,8 @@ export const WarningModal = ({
confirmLabel,
confirmCustomClassName,
isPopupView,
dataTestId
dataTestId,
destroyOnClose = false
}: WarningModalProps): React.ReactElement => {
const { t: translate } = useTranslation();

Expand All @@ -48,6 +50,7 @@ export const WarningModal = ({
open={visible}
width={isPopupView ? '100%' : modalWidth}
data-testid={dataTestId}
destroyOnClose={destroyOnClose}
>
<div data-testid="delete-address-modal-title" className={styles.header}>
{header}
Expand Down
Expand Up @@ -27,6 +27,7 @@ export const MultiAddressBalanceVisibleModal = (): ReactElement => {
visible={showMultiAddressModal}
confirmLabel={t('browserView.multiAddressWallet.modal.confirm')}
onConfirm={handleCloseModal}
destroyOnClose
/>
);
};

0 comments on commit f8337aa

Please sign in to comment.