Skip to content

Commit f0d4f0c

Browse files
lint
1 parent 2f9acb8 commit f0d4f0c

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

packages/thirdweb/scripts/wallets/generate.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,18 +138,22 @@ const customWalletInfos = [
138138
{
139139
id: "smart",
140140
name: "Smart Wallet",
141+
hasMobileSupport: true,
141142
},
142143
{
143144
id: "inApp",
144145
name: "In-App Wallet",
146+
hasMobileSupport: true,
145147
},
146148
{
147149
id: "embedded",
148150
name: "In-App Wallet",
151+
hasMobileSupport: true,
149152
},
150153
{
151154
id: "walletConnect",
152155
name: "WalletConnect",
156+
hasMobileSupport: false,
153157
},
154158
];
155159

packages/thirdweb/src/react/native/ui/connect/ExternalWalletsList.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ import {
1111
} from "react-native";
1212
import type { Chain } from "../../../../chains/types.js";
1313
import type { ThirdwebClient } from "../../../../client/client.js";
14-
import walletInfos, {
15-
type MinimalWalletInfo,
16-
} from "../../../../wallets/__generated__/wallet-infos.js";
14+
import walletInfos from "../../../../wallets/__generated__/wallet-infos.js";
1715
import type { Wallet } from "../../../../wallets/interfaces/wallet.js";
1816
import { createWallet } from "../../../../wallets/native/create-wallet.js";
1917
import type { WalletId } from "../../../../wallets/wallet-types.js";
@@ -98,7 +96,7 @@ export function AllWalletsList(
9896
const [searchQuery, setSearchQuery] = useState("");
9997

10098
const walletsToShow = useMemo(() => {
101-
const filteredWallets = (walletInfos as MinimalWalletInfo[])
99+
const filteredWallets = walletInfos
102100
.filter(
103101
(info) => !externalWallets.find((wallet) => wallet.id === info.id),
104102
)
@@ -232,6 +230,7 @@ function ShowAllWalletsRow(props: {
232230
>
233231
{[...Array(4)].map((_, index) => (
234232
<View
233+
// biome-ignore lint/suspicious/noArrayIndexKey: only have index as key
235234
key={index}
236235
style={{
237236
width: 14,

packages/thirdweb/src/wallets/__generated__/wallet-infos.ts

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/thirdweb/src/wallets/native/create-wallet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export function createWallet<const ID extends WalletId>(
121121
const sessionHandler = async (uri: string) => {
122122
try {
123123
await Linking.openURL(uri);
124-
} catch (error) {
124+
} catch {
125125
console.error(`Failed to open URI: ${uri} - is the app installed?`);
126126
// TODO: figure out how to propage this error to the UI
127127
throw new Error(`Failed to open URI: ${uri} - is the app installed?`);

0 commit comments

Comments
 (0)