Skip to content

Commit 6aa2765

Browse files
authored
Feature: UB Widget Tracking and Docs (#7426)
1 parent bbff67d commit 6aa2765

File tree

30 files changed

+530
-553
lines changed

30 files changed

+530
-553
lines changed

.changeset/wild-cases-ask.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Deprecate PayEmbed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
"use client";
2+
import { defineChain, type ThirdwebClient } from "thirdweb";
3+
import type { ChainMetadata } from "thirdweb/chains";
4+
import { BuyWidget } from "thirdweb/react";
5+
6+
export function BuyFundsSection(props: {
7+
chain: ChainMetadata;
8+
client: ThirdwebClient;
9+
}) {
10+
return (
11+
<section className="flex flex-col gap-4 items-center justify-center">
12+
<BuyWidget
13+
amount="0"
14+
// eslint-disable-next-line no-restricted-syntax
15+
chain={defineChain(props.chain.chainId)}
16+
client={props.client}
17+
/>
18+
</section>
19+
);
20+
}

apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/(chainPage)/components/client/PayModal.tsx

Lines changed: 0 additions & 49 deletions
This file was deleted.

apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/(chainPage)/components/icons/CreditCardIcon.tsx

Lines changed: 0 additions & 92 deletions
This file was deleted.

apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/(chainPage)/components/server/BuyFundsSection.tsx

Lines changed: 0 additions & 68 deletions
This file was deleted.

apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/(chainPage)/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { CircleAlertIcon } from "lucide-react";
22
import { getClientThirdwebClient } from "@/constants/thirdweb-client.client";
33
import { getRawAccount } from "../../../../account/settings/getAccount";
44
import { getChain, getChainMetadata } from "../../utils";
5+
import { BuyFundsSection } from "./components/client/BuyFundsSection";
56
import NextSteps from "./components/client/NextSteps";
6-
import { BuyFundsSection } from "./components/server/BuyFundsSection";
77
import { ChainOverviewSection } from "./components/server/ChainOverviewSection";
88
import { ClaimChainSection } from "./components/server/ClaimChainSection";
99
import { ChainCTA } from "./components/server/cta-card";

0 commit comments

Comments
 (0)