Skip to content

Commit 5c798c2

Browse files
authored
Merge branch 'main' into cursor/deprecate-modular-contracts-from-explore-d408
2 parents 7a6dbfb + ffb7b64 commit 5c798c2

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

apps/dashboard/src/app/bridge/components/client/UniversalBridgeEmbed.tsx

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
"use client";
22

33
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";
56
import { useV5DashboardChain } from "@/hooks/chains/v5-adapter";
67
import { getSDKTheme } from "@/utils/sdk-component-theme";
78
import { 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
);

0 commit comments

Comments
 (0)