From 1bf2cfff3b3622e15554948e36c04dc6fde07a03 Mon Sep 17 00:00:00 2001 From: OGPoyraz Date: Fri, 10 Jan 2025 10:01:27 +0100 Subject: [PATCH] fix signature unwanted empty div --- .../smart-transactions-banner-alert.tsx | 45 ++++++++++--------- .../__snapshots__/confirm.test.tsx.snap | 24 ---------- ui/pages/confirmations/confirm/confirm.tsx | 5 +-- 3 files changed, 25 insertions(+), 49 deletions(-) diff --git a/ui/pages/confirmations/components/smart-transactions-banner-alert/smart-transactions-banner-alert.tsx b/ui/pages/confirmations/components/smart-transactions-banner-alert/smart-transactions-banner-alert.tsx index e9f28a25c318..c22d9d98d5b6 100644 --- a/ui/pages/confirmations/components/smart-transactions-banner-alert/smart-transactions-banner-alert.tsx +++ b/ui/pages/confirmations/components/smart-transactions-banner-alert/smart-transactions-banner-alert.tsx @@ -18,6 +18,7 @@ import { getSmartTransactionsOptInStatusInternal, getSmartTransactionsMigrationAppliedInternal, } from '../../../../../shared/modules/selectors/smart-transactions'; +import { Box } from '../../../../components/component-library'; type MarginType = 'default' | 'none' | 'noTop' | 'onlyTop'; @@ -95,27 +96,29 @@ export const SmartTransactionsBannerAlert: React.FC - - {t('smartTransactionsEnabledTitle')} - - - - {t('smartTransactionsEnabledLink')} - - {t('smartTransactionsEnabledDescription')} - - + + + + {t('smartTransactionsEnabledTitle')} + + + + {t('smartTransactionsEnabledLink')} + + {t('smartTransactionsEnabledDescription')} + + + ); }); diff --git a/ui/pages/confirmations/confirm/__snapshots__/confirm.test.tsx.snap b/ui/pages/confirmations/confirm/__snapshots__/confirm.test.tsx.snap index 85c6e24b3d78..f528654a4525 100644 --- a/ui/pages/confirmations/confirm/__snapshots__/confirm.test.tsx.snap +++ b/ui/pages/confirmations/confirm/__snapshots__/confirm.test.tsx.snap @@ -116,9 +116,6 @@ exports[`Confirm matches snapshot for signature - personal sign type 1`] = ` -
-
-
-
-
-
-
-
{ return ( @@ -55,9 +54,7 @@ const Confirm = () => (
- - - + { ///: BEGIN:ONLY_INCLUDE_IF(build-mmi)