File tree Expand file tree Collapse file tree 4 files changed +12
-5
lines changed Expand file tree Collapse file tree 4 files changed +12
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -11,9 +11,7 @@ import {
1111} from "react-native" ;
1212import type { Chain } from "../../../../chains/types.js" ;
1313import 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" ;
1715import type { Wallet } from "../../../../wallets/interfaces/wallet.js" ;
1816import { createWallet } from "../../../../wallets/native/create-wallet.js" ;
1917import 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 ,
Original file line number Diff line number Diff 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?` ) ;
You can’t perform that action at this time.
0 commit comments