You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .changeset/perfect-ducks-walk.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
"thirdweb": minor
3
3
---
4
4
5
-
Open "Buy Modal" UI when sending transaction using the `useSendTransaction` hook if the user does not have enough funds to execute the transaction to prompt the user to buy tokens
5
+
Open "Pay Modal" UI when sending transaction using the `useSendTransaction` hook if the user does not have enough funds to execute the transaction to prompt the user to buy tokens
6
6
7
7
`useSendTransaction` now takes an optional `config` option to customize the "Pay Modal" UI
Copy file name to clipboardExpand all lines: packages/thirdweb/src/react/web/hooks/useSendTransaction.tsx
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -21,19 +21,19 @@ import { LoadingScreen } from "../wallets/shared/LoadingScreen.js";
21
21
*/
22
22
exporttypeSendTransactionConfig={
23
23
/**
24
-
* Configuration for the "Buy Modal" that opens when the user doesn't have enough funds to send a transaction.
25
-
* Set `payModal: false` to disable the "Buy Modal" popup
24
+
* Configuration for the "Pay Modal" that opens when the user doesn't have enough funds to send a transaction.
25
+
* Set `payModal: false` to disable the "Pay Modal" popup
26
26
*
27
-
* This configuration object includes the following properties to configure the "Buy Modal" UI:
27
+
* This configuration object includes the following properties to configure the "Pay Modal" UI:
28
28
*
29
29
* ### `locale`
30
-
* The language to use for the "Buy Modal" UI. Defaults to `"en_US"`.
30
+
* The language to use for the "Pay Modal" UI. Defaults to `"en_US"`.
31
31
*
32
32
* ### `supportedTokens`
33
33
* An object of type [`SupportedTokens`](https://portal.thirdweb.com/references/typescript/v5/SupportedTokens) to configure the tokens to show for a chain.
34
34
*
35
35
* ### `theme`
36
-
* The theme to use for the "Buy Modal" UI. Defaults to `"dark"`.
36
+
* The theme to use for the "Pay Modal" UI. Defaults to `"dark"`.
37
37
*
38
38
* It can be set to `"light"` or `"dark"` or an object of type [`Theme`](https://portal.thirdweb.com/references/typescript/v5/Theme) for a custom theme.
0 commit comments