From f0ea125bd272bb19d8508271e7d013b53161b575 Mon Sep 17 00:00:00 2001 From: peiman3 Date: Fri, 3 Jan 2025 14:23:58 +0330 Subject: [PATCH] Warning not showing properly. --- .../components/ContractError/ContractError.tsx | 2 +- liquidity/ui/src/components/Claim/Claim.tsx | 6 ++++-- .../components/ClosePosition/ClosePosition.tsx | 1 + .../ui/src/components/Deposit/Deposit.tsx | 8 +++++--- .../InitialDeposit/InitialDeposit.tsx | 6 ++++-- .../ui/src/components/MigrateUSD/StepIntro.tsx | 2 +- .../src/components/Migration/StepSummary.tsx | 2 +- .../src/components/Undelegate/Undelegate.tsx | 15 ++++++++++----- .../ui/src/components/Withdraw/Withdraw.tsx | 18 +++++++++++++++--- 9 files changed, 42 insertions(+), 18 deletions(-) diff --git a/liquidity/components/ContractError/ContractError.tsx b/liquidity/components/ContractError/ContractError.tsx index d575df21..1ef208a9 100644 --- a/liquidity/components/ContractError/ContractError.tsx +++ b/liquidity/components/ContractError/ContractError.tsx @@ -21,7 +21,7 @@ export function ContractError({ contractError }: { contractError: ContractErrorT details... ) : null} - + {contractError.name} diff --git a/liquidity/ui/src/components/Claim/Claim.tsx b/liquidity/ui/src/components/Claim/Claim.tsx index b2e6daf7..53fd058b 100644 --- a/liquidity/ui/src/components/Claim/Claim.tsx +++ b/liquidity/ui/src/components/Claim/Claim.tsx @@ -105,7 +105,7 @@ export function Claim() { - + @@ -127,7 +127,7 @@ export function Claim() { - + @@ -139,6 +139,7 @@ export function Claim() { @@ -168,6 +169,7 @@ export function Claim() { network?.preset !== 'andromeda' } animateOpacity + unmountOnExit > diff --git a/liquidity/ui/src/components/ClosePosition/ClosePosition.tsx b/liquidity/ui/src/components/ClosePosition/ClosePosition.tsx index a927b06c..a541044c 100644 --- a/liquidity/ui/src/components/ClosePosition/ClosePosition.tsx +++ b/liquidity/ui/src/components/ClosePosition/ClosePosition.tsx @@ -177,6 +177,7 @@ function ClosePositionUi({ onSubmit, onClose }: { onClose: () => void; onSubmit: .gte(liquidityPosition.debt) } animateOpacity + unmountOnExit > diff --git a/liquidity/ui/src/components/Deposit/Deposit.tsx b/liquidity/ui/src/components/Deposit/Deposit.tsx index bf0efeaf..193b88c1 100644 --- a/liquidity/ui/src/components/Deposit/Deposit.tsx +++ b/liquidity/ui/src/components/Deposit/Deposit.tsx @@ -255,11 +255,11 @@ export function Deposit() { ) : null} - + - + @@ -277,6 +277,7 @@ export function Deposit() { .lt(collateralType.minDelegationD18) } animateOpacity + unmountOnExit > @@ -289,7 +290,7 @@ export function Deposit() { ) : null} - + @@ -308,6 +309,7 @@ export function Deposit() { .gte(collateralType.minDelegationD18) } animateOpacity + unmountOnExit > - + @@ -256,6 +257,7 @@ export function InitialDeposit({ !overAvailableBalance } animateOpacity + unmountOnExit > @@ -268,7 +270,7 @@ export function InitialDeposit({ - + diff --git a/liquidity/ui/src/components/MigrateUSD/StepIntro.tsx b/liquidity/ui/src/components/MigrateUSD/StepIntro.tsx index b7147753..db91bfc2 100644 --- a/liquidity/ui/src/components/MigrateUSD/StepIntro.tsx +++ b/liquidity/ui/src/components/MigrateUSD/StepIntro.tsx @@ -131,7 +131,7 @@ export const StepIntro = ({ - + You cannot convert more than your v2 sUSD balance diff --git a/liquidity/ui/src/components/Migration/StepSummary.tsx b/liquidity/ui/src/components/Migration/StepSummary.tsx index 438ab2c1..e1236564 100644 --- a/liquidity/ui/src/components/Migration/StepSummary.tsx +++ b/liquidity/ui/src/components/Migration/StepSummary.tsx @@ -220,7 +220,7 @@ export const StepSummary = ({ {data && snxCollateral ? ( - + diff --git a/liquidity/ui/src/components/Undelegate/Undelegate.tsx b/liquidity/ui/src/components/Undelegate/Undelegate.tsx index 55fa77b9..5be5948a 100644 --- a/liquidity/ui/src/components/Undelegate/Undelegate.tsx +++ b/liquidity/ui/src/components/Undelegate/Undelegate.tsx @@ -166,7 +166,7 @@ export function Undelegate() { - + @@ -180,7 +180,7 @@ export function Undelegate() { {collateralType ? ( - + @@ -199,7 +199,11 @@ export function Undelegate() { ) : null} - + @@ -215,6 +219,7 @@ export function Undelegate() { collateralChange.abs().gt(0) && isValidLeftover && !isRunning && maxWithdrawable?.gt(0) } animateOpacity + unmountOnExit > @@ -252,7 +257,7 @@ export function Undelegate() { ) : null} {network?.preset === 'andromeda' && liquidityPosition ? ( - + @@ -288,7 +293,7 @@ export function Undelegate() { ) : null} {liquidityPosition ? ( - + - + @@ -123,14 +127,22 @@ export function Withdraw({ isDebtWithdrawal = false }: { isDebtWithdrawal?: bool - + - +