Skip to content

Commit 11f8dce

Browse files
committed
chore: deprecate PayEmbed
1 parent 031e629 commit 11f8dce

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
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

packages/thirdweb/src/react/web/ui/PayEmbed.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ export type PayEmbedProps = {
308308
* Refer to the [`PayEmbedConnectOptions`](https://portal.thirdweb.com/references/typescript/v5/PayEmbedConnectOptions) type for more details.
309309
*
310310
* @buyCrypto
311+
* @deprecated Use `BuyWidget`, `CheckoutWidget` or `TransactionWidget` instead.
311312
*/
312313
export function PayEmbed(props: PayEmbedProps) {
313314
const localeQuery = useConnectLocale(props.locale || "en_US");
@@ -510,10 +511,10 @@ export type PayEmbedConnectOptions = {
510511
* ```
511512
*/
512513
autoConnect?:
513-
| {
514-
timeout: number;
515-
}
516-
| boolean;
514+
| {
515+
timeout: number;
516+
}
517+
| boolean;
517518

518519
/**
519520
* Metadata of the app that will be passed to connected wallet. Setting this is highly recommended.

0 commit comments

Comments
 (0)