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 11"use client" ;
22
33import { 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" ;
56import { useV5DashboardChain } from "@/hooks/chains/v5-adapter" ;
67import { getSDKTheme } from "@/utils/sdk-component-theme" ;
78import { bridgeAppThirdwebClient } from "../../constants" ;
@@ -19,19 +20,11 @@ export function UniversalBridgeEmbed({
1920 const chain = useV5DashboardChain ( chainId || 1 ) ;
2021
2122 return (
22- < PayEmbed
23+ < BuyWidget
2324 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 }
3528 theme = { getSDKTheme ( theme === "light" ? "light" : "dark" ) }
3629 />
3730 ) ;
You can’t perform that action at this time.
0 commit comments