Skip to content

Commit a394384

Browse files
committed
lint
1 parent 74550bf commit a394384

File tree

3 files changed

+39
-39
lines changed

3 files changed

+39
-39
lines changed

packages/thirdweb/src/react/web/ui/Bridge/BuyWidget.tsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -155,15 +155,15 @@ export type BuyWidgetProps = {
155155
type UIOptionsResult =
156156
| { type: "success"; data: UIOptions }
157157
| {
158-
type: "indexing_token";
159-
token: Token;
160-
chain: Chain;
161-
}
158+
type: "indexing_token";
159+
token: Token;
160+
chain: Chain;
161+
}
162162
| {
163-
type: "unsupported_token";
164-
tokenAddress: Address;
165-
chain: Chain;
166-
};
163+
type: "unsupported_token";
164+
tokenAddress: Address;
165+
chain: Chain;
166+
};
167167

168168
/**
169169
* Widget is a prebuilt UI for purchasing a specific token.
@@ -265,7 +265,7 @@ export function BuyWidget(props: BuyWidgetProps) {
265265
!props.tokenAddress ||
266266
(isAddress(props.tokenAddress) &&
267267
checksumAddress(props.tokenAddress) ===
268-
checksumAddress(NATIVE_TOKEN_ADDRESS))
268+
checksumAddress(NATIVE_TOKEN_ADDRESS))
269269
) {
270270
const ETH = await getToken(
271271
props.client,
@@ -421,10 +421,10 @@ type BuyWidgetConnectOptions = {
421421
* ```
422422
*/
423423
autoConnect?:
424-
| {
425-
timeout: number;
426-
}
427-
| boolean;
424+
| {
425+
timeout: number;
426+
}
427+
| boolean;
428428

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

packages/thirdweb/src/react/web/ui/Bridge/CheckoutWidget.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -171,15 +171,15 @@ export type CheckoutWidgetProps = {
171171
type UIOptionsResult =
172172
| { type: "success"; data: UIOptions }
173173
| {
174-
type: "indexing_token";
175-
token: Token;
176-
chain: Chain;
177-
}
174+
type: "indexing_token";
175+
token: Token;
176+
chain: Chain;
177+
}
178178
| {
179-
type: "unsupported_token";
180-
tokenAddress: Address;
181-
chain: Chain;
182-
};
179+
type: "unsupported_token";
180+
tokenAddress: Address;
181+
chain: Chain;
182+
};
183183

184184
/**
185185
* Widget a prebuilt UI for purchasing a specific token.
@@ -401,10 +401,10 @@ type CheckoutWidgetConnectOptions = {
401401
* ```
402402
*/
403403
autoConnect?:
404-
| {
405-
timeout: number;
406-
}
407-
| boolean;
404+
| {
405+
timeout: number;
406+
}
407+
| boolean;
408408

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

packages/thirdweb/src/react/web/ui/Bridge/TransactionWidget.tsx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@ import { useQuery } from "@tanstack/react-query";
44
import type { Token } from "../../../../bridge/index.js";
55
import type { Chain } from "../../../../chains/types.js";
66
import type { ThirdwebClient } from "../../../../client/client.js";
7+
import { NATIVE_TOKEN_ADDRESS } from "../../../../constants/addresses.js";
8+
import { getToken } from "../../../../pay/convert/get-token.js";
79
import {
810
type PreparedTransaction,
911
prepareTransaction,
1012
} from "../../../../transaction/prepare-transaction.js";
1113
import { type Address, checksumAddress } from "../../../../utils/address.js";
1214
import { stringify } from "../../../../utils/json.js";
1315
import { toUnits } from "../../../../utils/units.js";
14-
import { getToken } from "../../../../pay/convert/get-token.js";
1516
import type { Wallet } from "../../../../wallets/interfaces/wallet.js";
1617
import type { SmartWalletOptions } from "../../../../wallets/smart/types.js";
1718
import type { AppMetadata } from "../../../../wallets/types.js";
@@ -28,7 +29,6 @@ import { Spinner } from "../components/Spinner.js";
2829
import type { LocaleId } from "../types.js";
2930
import { BridgeOrchestrator, type UIOptions } from "./BridgeOrchestrator.js";
3031
import { UnsupportedTokenScreen } from "./UnsupportedTokenScreen.js";
31-
import { NATIVE_TOKEN_ADDRESS } from "../../../../constants/addresses.js";
3232

3333
export type TransactionWidgetProps = {
3434
supportedTokens?: SupportedTokens;
@@ -171,15 +171,15 @@ export type TransactionWidgetProps = {
171171
type UIOptionsResult =
172172
| { type: "success"; data: UIOptions }
173173
| {
174-
type: "indexing_token";
175-
token: Token;
176-
chain: Chain;
177-
}
174+
type: "indexing_token";
175+
token: Token;
176+
chain: Chain;
177+
}
178178
| {
179-
type: "unsupported_token";
180-
tokenAddress: Address;
181-
chain: Chain;
182-
};
179+
type: "unsupported_token";
180+
tokenAddress: Address;
181+
chain: Chain;
182+
};
183183

184184
/**
185185
* Widget a prebuilt UI for purchasing a specific token.
@@ -426,10 +426,10 @@ type TransactionWidgetConnectOptions = {
426426
* ```
427427
*/
428428
autoConnect?:
429-
| {
430-
timeout: number;
431-
}
432-
| boolean;
429+
| {
430+
timeout: number;
431+
}
432+
| boolean;
433433

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

0 commit comments

Comments
 (0)