Skip to content

Commit

Permalink
remove imports
Browse files Browse the repository at this point in the history
  • Loading branch information
abcrane123 committed Jun 13, 2024
1 parent 16ae400 commit 79ba44b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 35 deletions.
33 changes: 1 addition & 32 deletions site/docs/pages/swap/swap.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Swap, SwapAmountInput, SwapButton } from '../../../../src/swap';
{/* import { Swap, SwapAmountInput, SwapButton } from '../../../../src/swap'; */}
import App from '../App';

# `<Swap />`
Expand All @@ -17,37 +17,6 @@ The `Swap` component is a comprehensive interface for users to execute token swa
</Swap>
```

<App>
<Swap>
<SwapAmountInput
label="Sell"
token={{
name: 'Ethereum',
address: '',
symbol: 'ETH',
decimals: 18,
image: 'https://wallet-api-production.s3.amazonaws.com/uploads/tokens/eth_288.png',
chainId: 8453,
}}
type="from"
/>
<SwapAmountInput
label="Buy"
token={{
name: 'USDC',
address: '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913',
symbol: 'USDC',
decimals: 6,
image:
'https://d3r81g40ycuhqg.cloudfront.net/wallet/wais/44/2b/442b80bd16af0c0d9b22e03a16753823fe826e5bfd457292b55fa0ba8c1ba213-ZWUzYjJmZGUtMDYxNy00NDcyLTg0NjQtMWI4OGEwYjBiODE2',
chainId: 8453,
}}
type="to"
/>
<SwapButton />
</Swap>
</App>

## Props

[`SwapReact`](/swap/types#SwapReact)
3 changes: 0 additions & 3 deletions src/swap/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// 🌲☀️🌲
export { getSwapQuote } from './core/getSwapQuote';
export { Swap } from './components/Swap';
export { SwapAmountInput } from './components/SwapAmountInput';
export { SwapButton } from './components/SwapButton';
export type {
BuildSwapTransactionParams,
BuildSwapTransactionResponse,
Expand Down

0 comments on commit 79ba44b

Please sign in to comment.