Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
abcrane123 committed Jun 10, 2024
1 parent 60960d2 commit 3f7f1be
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions site/docs/pages/swap/swap-amount-input.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,7 @@ The `SwapAmountInput` component is a stylized input field designed for users to

```tsx [code]
<SwapAmountInput
token={{
address: '0x1234',
chainId: 1,
decimals: 18,
image:
'https://dynamic-assets.coinbase.com/dbb4b4983bde81309ddab83eb598358eb44375b930b94687ebe38bc22e52c3b2125258ffb8477a5ef22e33d6bd72e32a506c391caa13af64c00e46613c3e5806/asset_icons/4113b082d21cc5fab17fc8f2d19fb996165bcce635e6900f7fc2d57c4ef33ae9.png',
name: 'Ethereum',
symbol: 'ETH',
}}
token={token}
swappableTokens={[
{
address: '0x1234',
Expand All @@ -34,7 +26,10 @@ The `SwapAmountInput` component is a stylized input field designed for users to
...
]}
label="Sell"
tokenBalance="4"
amount={amount}
tokenBalance={tokenBalance}
onAmountChange={setAmount}
onTokenSelectorClick={setToken}
/>
```

Expand Down

0 comments on commit 3f7f1be

Please sign in to comment.