Skip to content

Commit 88d8c20

Browse files
committed
add imports
1 parent 81eb905 commit 88d8c20

File tree

3 files changed

+9
-14
lines changed

3 files changed

+9
-14
lines changed

site/docs/pages/swap/swap.mdx

+5-8
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ If you'd like more customization, follow the implementation guide for our `Swap`
2323

2424
```tsx twoslash
2525
import { Avatar, Name } from '@coinbase/onchainkit/identity';
26-
import { SwapDefault } from '@coinbase/onchainkit/swap'; // [!code focus]
2726
import { Wallet, ConnectWallet } from '@coinbase/onchainkit/wallet';
2827
import { useAccount } from 'wagmi';
2928
import type { Token } from '@coinbase/onchainkit/token';
@@ -71,18 +70,16 @@ export default function SwapComponents() {
7170
chainId: 8453,
7271
};
7372
// ---cut-before---
74-
// omitted for brevity
73+
import { SwapDefault } from '@coinbase/onchainkit/swap'; // [!code focus]
7574

7675
// the first token in array will be initially selected token // [!code focus]
7776
const swappableFromTokens: Token[] = [wethToken, usdcToken, ethToken, degenToken]; // [!code focus]
7877
const swappableToTokens: Token[] = [degenToken, ethToken, usdcToken, wethToken] // [!code focus]
7978

80-
return ( // [!code focus]
81-
<SwapDefault // [!code focus]
82-
from={swappableFromTokens} // [!code focus]
83-
to={swappableToTokens} // [!code focus]
84-
/> // [!code focus]
85-
); // [!code focus]
79+
<SwapDefault // [!code focus]
80+
from={swappableFromTokens} // [!code focus]
81+
to={swappableToTokens} // [!code focus]
82+
/> // [!code focus]
8683
// ---cut-after---
8784
}
8885

site/docs/pages/transaction/transaction.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ If you'd like more customization, follow the implementation guide for our `Swap`
4141

4242
```tsx twoslash
4343
// @noErrors: 2580 2304 - Cannot find name 'process', Cannot find name 'contracts'
44-
import { TransactionDefault } from "@coinbase/onchainkit/transaction"
4544
// ---cut-before---
46-
// omitted for brevity
47-
<TransactionDefault contracts={contracts} />
45+
import { TransactionDefault } from "@coinbase/onchainkit/transaction" // [!code focus]
46+
47+
<TransactionDefault contracts={contracts} /> // [!code focus]
4848
```
4949

5050
<App>

site/docs/pages/wallet/wallet.mdx

+1-3
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,10 @@ The `WalletDefault` component is a simplified version of the `Wallet` component,
4242
If you'd like more customization, follow the implementation guide for our `Wallet` component below.
4343

4444
```tsx twoslash
45-
import { WalletDefault } from '@coinbase/onchainkit/wallet';
46-
4745
export function WalletComponents() {
4846
return (
4947
// ---cut-before---
50-
// omitted for brevity
48+
import { WalletDefault } from '@coinbase/onchainkit/wallet';
5149

5250
<WalletDefault /> // [!code focus]
5351
// ---cut-after---

0 commit comments

Comments
 (0)