From af32d3a01b2ed4b1b9e6ea8d6ed5a4c0a768d59d Mon Sep 17 00:00:00 2001 From: cpl121 Date: Wed, 13 Nov 2024 15:32:25 +0100 Subject: [PATCH] fix(wallet-dashboard): prettier --- .../components/Inputs/SendTokenFormInput.tsx | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/apps/core/src/components/Inputs/SendTokenFormInput.tsx b/apps/core/src/components/Inputs/SendTokenFormInput.tsx index c07d3edfb33..2298d433260 100644 --- a/apps/core/src/components/Inputs/SendTokenFormInput.tsx +++ b/apps/core/src/components/Inputs/SendTokenFormInput.tsx @@ -47,7 +47,7 @@ export function SendTokenFormInput({ amount: values.amount, isPayAllIota: values.isPayAllIota, }); - + const numericPropsOnly: Partial = { decimalScale: coinDecimals ? undefined : 0, thousandSeparator: true, @@ -56,21 +56,16 @@ export function SendTokenFormInput({ }, }; - const isActionButtonDisabled = !value || !!errorMessage; - + const renderAction = (isButtonDisabled: boolean | undefined) => ( + > Max - ) + ); // gasBudgetEstimation should change when the amount above changes useEffect(() => { @@ -80,7 +75,7 @@ export function SendTokenFormInput({ return (