Skip to content

Commit a4c7def

Browse files
committed
jsdoc correction in payembed
1 parent 06f9e0c commit a4c7def

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

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

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ export type PayEmbedProps = {
3434
* `supportedTokens` prop allows you to override this list as shown below.
3535
*
3636
* ```tsx
37-
* import { ConnectButton } from 'thirdweb/react';
37+
* import { PayEmbed } from 'thirdweb/react';
3838
* import { NATIVE_TOKEN_ADDRESS } from 'thirdweb';
3939
*
4040
* function Example() {
4141
* return (
42-
* <ConnectButton
42+
* <PayEmbed
4343
* supportedTokens={{
4444
* // Override the tokens for Base Mainnet ( chaid id 84532 )
4545
* 84532: [
@@ -247,9 +247,6 @@ export type PayEmbedConnectOptions = {
247247
/**
248248
* Configurations for the `ConnectButton`'s Modal that is shown for connecting a wallet
249249
* Refer to the [`ConnectButton_connectModalOptions`](https://portal.thirdweb.com/references/typescript/v5/ConnectButton_connectModalOptions) type for more details
250-
* @example
251-
* ```tsx
252-
* <ConnectButton connectModal={{ size: "compact" }} />
253250
*/
254251
connectModal?: ConnectButton_connectModalOptions;
255252

@@ -270,14 +267,6 @@ export type PayEmbedConnectOptions = {
270267
*
271268
* This allows to sponsor gas fees for your user's transaction using the thirdweb account abstraction infrastructure.
272269
*
273-
* ```tsx
274-
* <ConnectButton
275-
* accountAbstraction={{
276-
* factoryAddress: "0x123...",
277-
* chain: sepolia,
278-
* gasless: true;
279-
* }}
280-
* />
281270
*/
282271
accountAbstraction?: SmartWalletOptions;
283272

@@ -293,8 +282,6 @@ export type PayEmbedConnectOptions = {
293282
* If you want to disable autoConnect, set this prop to `false`.
294283
*
295284
* If you want to customize the timeout, you can assign an object with a `timeout` key to this prop.
296-
* ```tsx
297-
* <ConnectButton client={client} autoConnect={{ timeout: 10000 }} />
298285
* ```
299286
*/
300287
autoConnect?:
@@ -334,10 +321,6 @@ export type PayEmbedConnectOptions = {
334321
* - They will be displayed in the network selector in the `ConnectButton`'s details modal post connection
335322
* - They will be sent to wallet at the time of connection if the wallet supports requesting multiple chains ( example: WalletConnect ) so that users can switch between the chains post connection easily
336323
*
337-
* ```tsx
338-
* <ConnectButton chains={[ethereum, polygon, optimism]} />
339-
* ```
340-
*
341324
* You can create a `Chain` object using the [`defineChain`](https://portal.thirdweb.com/references/typescript/v5/defineChain) function.
342325
* At minimum, you need to pass the `id` of the blockchain to `defineChain` function to create a `Chain` object.
343326
*

0 commit comments

Comments
 (0)