Skip to content

Commit 1a33e11

Browse files
committed
Dashboard: use BuyWidget instead of CheckoutWidget in TransactionButton
1 parent 98eefdf commit 1a33e11

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

apps/dashboard/src/@/components/tx-button/MismatchButton.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
} from "thirdweb";
1919
import { type Chain, type ChainMetadata, localhost } from "thirdweb/chains";
2020
import {
21-
CheckoutWidget,
21+
BuyWidget,
2222
useActiveAccount,
2323
useActiveWallet,
2424
useActiveWalletChain,
@@ -267,14 +267,12 @@ export const MismatchButton = forwardRef<
267267
/>
268268
)}
269269

270-
{dialog === "pay" && account && (
271-
<CheckoutWidget
270+
{dialog === "pay" && (
271+
<BuyWidget
272272
className="!w-full"
273273
client={props.client}
274274
chain={txChain}
275275
amount="0.01"
276-
name="Buy Funds"
277-
seller={account.address as `0x${string}`}
278276
theme={getSDKTheme(theme === "dark" ? "dark" : "light")}
279277
/>
280278
)}

0 commit comments

Comments
 (0)