Skip to content

Commit 8513839

Browse files
committed
fix knip lint
1 parent a630bc9 commit 8513839

File tree

5 files changed

+4
-15
lines changed

5 files changed

+4
-15
lines changed

packages/thirdweb/src/react/web/ui/Bridge/swap-widget/select-chain.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ function ChainButtonSkeleton() {
133133
);
134134
}
135135

136-
export function ChainButton(props: {
136+
function ChainButton(props: {
137137
chain: BridgeChain;
138138
client: ThirdwebClient;
139139
onClick: () => void;

packages/thirdweb/src/react/web/ui/Bridge/swap-widget/select-sell-token.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export function SelectSellTokenDisconnectedUI(props: {
122122
);
123123
}
124124

125-
export function SelectSellTokenConnected(
125+
function SelectSellTokenConnected(
126126
props: SelectSellTokenProps & {
127127
activeWalletInfo: ActiveWalletInfo;
128128
},

packages/thirdweb/src/react/web/ui/Bridge/swap-widget/swap-ui.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ function useTokenPrice(options: {
223223
});
224224
}
225225

226-
export function SwapUIBase(
226+
function SwapUIBase(
227227
props: SwapUIProps & {
228228
onSelectToken: (type: "buy" | "sell") => void;
229229
buyToken: TokenSelection | undefined;

packages/thirdweb/src/react/web/ui/Bridge/swap-widget/use-tokens.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export type TokenBalance = {
5757
token_address: string;
5858
};
5959

60-
export type TokenBalancesResponse = {
60+
type TokenBalancesResponse = {
6161
result: {
6262
pagination: {
6363
hasMore: boolean;
Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
import { NATIVE_TOKEN_ADDRESS } from "../../../../../constants/addresses.js";
2-
import { getAddress } from "../../../../../utils/address.js";
3-
import type { TokenSelection } from "./types.js";
4-
51
export function cleanedChainName(name: string) {
62
return name.replace("Mainnet", "");
73
}
8-
9-
export function isTokenSelectionNativeToken(token: TokenSelection) {
10-
if (!token.tokenAddress) {
11-
return true;
12-
}
13-
return getAddress(token.tokenAddress) === getAddress(NATIVE_TOKEN_ADDRESS);
14-
}

0 commit comments

Comments
 (0)