From 5c8e1a94031b3008c921fb9081485150b1f4b2fb Mon Sep 17 00:00:00 2001 From: Jyoti Puri Date: Fri, 21 Jun 2024 17:25:10 +0530 Subject: [PATCH] fix: Permit signature re-design papercuts (#25383) --- .../components/confirm/footer/footer.tsx | 8 +------- .../confirm/info/__snapshots__/info.test.tsx.snap | 4 ++-- .../__snapshots__/typed-sign.test.tsx.snap | 12 ++++++------ .../__snapshots__/permit-simulation.test.tsx.snap | 1 + .../permit-simulation/permit-simulation.tsx | 2 +- .../confirm/info/typed-sign/typed-sign.tsx | 6 +++--- .../confirm/__snapshots__/confirm.test.tsx.snap | 4 ++-- 7 files changed, 16 insertions(+), 21 deletions(-) diff --git a/ui/pages/confirmations/components/confirm/footer/footer.tsx b/ui/pages/confirmations/components/confirm/footer/footer.tsx index 61b9fe36a90e..5d1f75ed8783 100644 --- a/ui/pages/confirmations/components/confirm/footer/footer.tsx +++ b/ui/pages/confirmations/components/confirm/footer/footer.tsx @@ -28,10 +28,6 @@ import { confirmSelector } from '../../../selectors'; import { REDESIGN_TRANSACTION_TYPES } from '../../../utils'; import { getConfirmationSender } from '../utils'; -function getIconName(hasUnconfirmedAlerts: boolean): IconName { - return hasUnconfirmedAlerts ? IconName.SecuritySearch : IconName.Danger; -} - const ConfirmButton = ({ alertOwnerId = '', disabled, @@ -73,9 +69,7 @@ const ConfirmButton = ({