Skip to content

Commit

Permalink
Update placeholder of BalanceInput
Browse files Browse the repository at this point in the history
  • Loading branch information
JayJay1024 committed May 9, 2024
1 parent 186b74f commit 1d04f06
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/balance-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function BalanceInput({

const _placeholder = useMemo(() => {
if (balance && asset) {
return `Balance ${formatBalance(balance, asset.decimals)}`;
return `Available balance ${formatBalance(balance, asset.decimals)}`;
}
return placeholder ?? "Enter an amount";
}, [balance, asset, placeholder]);
Expand Down
7 changes: 6 additions & 1 deletion src/components/transfer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,12 @@ export default function Transfer() {
extra={<ChainSelect value={targetChain} options={targetChainOptions} onChange={_setTargetChain} />}
className="border-radius mt-3 border border-transparent"
>
<BalanceInput disabled asset={targetAsset} balance={targetBalance?.asset.value} placeholder="Balance 0" />
<BalanceInput
disabled
asset={targetAsset}
balance={targetBalance?.asset.value}
placeholder="Available balance 0"
/>
</TransferSection>

{/* Send */}
Expand Down

0 comments on commit 1d04f06

Please sign in to comment.