Skip to content

Commit 4f2a3fb

Browse files
authored
docs: Update terminology in useSendTransaction.tsx (#2800)
1 parent 37bd0e4 commit 4f2a3fb

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.changeset/perfect-ducks-walk.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"thirdweb": minor
33
---
44

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
66

77
`useSendTransaction` now takes an optional `config` option to customize the "Pay Modal" UI
88

packages/thirdweb/src/react/web/hooks/useSendTransaction.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@ import { LoadingScreen } from "../wallets/shared/LoadingScreen.js";
2121
*/
2222
export type SendTransactionConfig = {
2323
/**
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
2626
*
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:
2828
*
2929
* ### `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"`.
3131
*
3232
* ### `supportedTokens`
3333
* An object of type [`SupportedTokens`](https://portal.thirdweb.com/references/typescript/v5/SupportedTokens) to configure the tokens to show for a chain.
3434
*
3535
* ### `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"`.
3737
*
3838
* 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.
3939
*

0 commit comments

Comments
 (0)