Skip to content

Commit 6035091

Browse files
committed
Disable default "Alert" text and the arrow for inline Confirmation alerts
1 parent 031dda4 commit 6035091

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

ui/components/app/confirm/info/row/alert-row/alert-row.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,10 @@ export const ConfirmInfoAlertRow = ({
108108
<InlineAlert
109109
alertKey={alertKey}
110110
severity={selectedAlertSeverity}
111-
showArrow={selectedAlertShowArrow}
112-
textOverride={selectedAlertInlineAlertText}
111+
showArrow={Boolean(
112+
selectedAlertShowArrow && selectedAlertInlineAlertText,
113+
)}
114+
textOverride={selectedAlertInlineAlertText || ''}
113115
onClick={onClickHandler}
114116
/>
115117
</Box>

ui/pages/confirmations/components/simulation-details/simulation-details.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,8 @@ const BalanceChangesAlert = ({ transactionId }: { transactionId: string }) => {
355355
<InlineAlert
356356
onClick={handleInlineAlertClick}
357357
severity={selectedAlertSeverity}
358+
showArrow={false}
359+
textOverride={''}
358360
/>
359361
</Box>
360362
)}

0 commit comments

Comments
 (0)