Skip to content

Commit

Permalink
fix(wallet-dashboard): prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
cpl121 committed Nov 13, 2024
1 parent 7e6c12d commit af32d3a
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions apps/core/src/components/Inputs/SendTokenFormInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function SendTokenFormInput({
amount: values.amount,
isPayAllIota: values.isPayAllIota,
});

const numericPropsOnly: Partial<NumericFormatInputProps> = {
decimalScale: coinDecimals ? undefined : 0,
thousandSeparator: true,
Expand All @@ -56,21 +56,16 @@ export function SendTokenFormInput({
},
};


const isActionButtonDisabled = !value || !!errorMessage;

const renderAction = (isButtonDisabled: boolean | undefined) => (
<ButtonPill
disabled={
isMaxActionDisabled === 'auto'
? isButtonDisabled
: isActionButtonDisabled
}
disabled={isMaxActionDisabled === 'auto' ? isButtonDisabled : isActionButtonDisabled}
onClick={onActionClick}
>
>
Max
</ButtonPill>
)
);

// gasBudgetEstimation should change when the amount above changes
useEffect(() => {
Expand All @@ -80,7 +75,7 @@ export function SendTokenFormInput({
return (
<Input
type={InputType.NumericFormat}
name={"amount"}
name={'amount'}
value={value}
caption="Est. Gas Fees:"
placeholder="0.00"
Expand Down

0 comments on commit af32d3a

Please sign in to comment.