Skip to content

Commit a9e47e4

Browse files
Replace PayEmbed with BuyWidget code (#7574)
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
1 parent bfd728a commit a9e47e4

File tree

1 file changed

+9
-2
lines changed
  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/universal-bridge/components

1 file changed

+9
-2
lines changed

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/universal-bridge/components/code-examples.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
export const embedCode = (clientId: string) => `\
22
import { createThirdwebClient } from "thirdweb";
3-
import { PayEmbed } from "thirdweb/react";
3+
import { BuyWidget } from "thirdweb/react";
4+
import { ethereum } from "thirdweb/chains";
45
56
const client = createThirdwebClient({
67
clientId: "${clientId}",
78
});
89
910
export default function App() {
10-
return <PayEmbed client={client} />;
11+
return (
12+
<BuyWidget
13+
client={client}
14+
chain={ethereum}
15+
amount="0.1"
16+
/>
17+
);
1118
}`;
1219

1320
export const sdkCode = (clientId: string) => `\

0 commit comments

Comments
 (0)