File tree Expand file tree Collapse file tree 1 file changed +6
-13
lines changed
apps/dashboard/src/app/bridge/components/client Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change 1
1
"use client" ;
2
2
3
3
import { useTheme } from "next-themes" ;
4
- import { PayEmbed , type TokenInfo } from "thirdweb/react" ;
4
+ import type { Address } from "thirdweb" ;
5
+ import { BuyWidget , type TokenInfo } from "thirdweb/react" ;
5
6
import { useV5DashboardChain } from "@/hooks/chains/v5-adapter" ;
6
7
import { getSDKTheme } from "@/utils/sdk-component-theme" ;
7
8
import { bridgeAppThirdwebClient } from "../../constants" ;
@@ -19,19 +20,11 @@ export function UniversalBridgeEmbed({
19
20
const chain = useV5DashboardChain ( chainId || 1 ) ;
20
21
21
22
return (
22
- < PayEmbed
23
+ < BuyWidget
23
24
client = { bridgeAppThirdwebClient }
24
- payOptions = { {
25
- mode : "fund_wallet" ,
26
- prefillBuy :
27
- chainId && token
28
- ? {
29
- amount,
30
- chain,
31
- token,
32
- }
33
- : undefined ,
34
- } }
25
+ amount = { amount || "0" }
26
+ chain = { chain }
27
+ tokenAddress = { token ?. address as Address | undefined }
35
28
theme = { getSDKTheme ( theme === "light" ? "light" : "dark" ) }
36
29
/>
37
30
) ;
You can’t perform that action at this time.
0 commit comments