From a2c302cd893d8ce292513e61bd59e9001e3531cf Mon Sep 17 00:00:00 2001 From: daveylupes Date: Sun, 20 Sep 2026 22:22:35 +0200 Subject: [PATCH] fix(frontend): add confirmation step for asset/peer liquidity actions Require review before deposit/withdraw so asset and peer liquidity flows meet WCAG 3.3.4, matching existing wallet-address/payment dialogs. --- .../app/components/LiquidityConfirmDialog.tsx | 20 ++++++- .../app/components/LiquidityDialog.tsx | 55 +++++++++++-------- 2 files changed, 51 insertions(+), 24 deletions(-) diff --git a/packages/frontend/app/components/LiquidityConfirmDialog.tsx b/packages/frontend/app/components/LiquidityConfirmDialog.tsx index 5719bdb4e4..4020a41436 100644 --- a/packages/frontend/app/components/LiquidityConfirmDialog.tsx +++ b/packages/frontend/app/components/LiquidityConfirmDialog.tsx @@ -6,13 +6,17 @@ type LiquidityConfirmDialogProps = { onClose: () => void type: 'Deposit' | 'Withdraw' displayAmount: string + amount?: string + onBack?: () => void } export const LiquidityConfirmDialog = ({ title, onClose, type, - displayAmount + displayAmount, + amount, + onBack }: LiquidityConfirmDialogProps) => { return ( !open && onClose()}> @@ -28,7 +32,21 @@ export const LiquidityConfirmDialog = ({
+ {amount !== undefined && ( + + )} + {onBack && ( + + )} - - - -
+ + +