Skip to content

Commit

Permalink
alphabetize
Browse files Browse the repository at this point in the history
  • Loading branch information
abcrane123 committed Jun 10, 2024
1 parent e4d6f76 commit 6743bac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions site/docs/components/SwapAmountInputContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import type { Token } from '@coinbase/onchainkit/token';

type SwapAmountInputContainer = {
children: (
token: Token,
setToken: (t: Token) => void,
setAmount: (a: string) => void,
amount: string,
setAmount: (a: string) => void,
setToken: (t: Token) => void,
token: Token,
tokenBalance: string,
) => ReactElement;
};
Expand All @@ -23,5 +23,5 @@ export default function SwapAmountInputContainer({ children }: SwapAmountInputCo

const tokenBalance = TOKEN_BALANCE_MAP[token?.symbol];

return children(token, setToken, setAmount, amount, tokenBalance);
return children(amount, setAmount, setToken, token, tokenBalance);
}
2 changes: 1 addition & 1 deletion site/docs/pages/swap/swap-amount-input.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ The `SwapAmountInput` component is a stylized input field designed for users to

<App>
<SwapAmountInputContainer>
{(token, setToken, setAmount, amount, tokenBalance) => (
{(amount, setAmount, setToken, token, tokenBalance) => (
<SwapAmountInput
amount={amount}
label="Sell"
Expand Down

0 comments on commit 6743bac

Please sign in to comment.