File tree Expand file tree Collapse file tree 3 files changed +5
-14
lines changed
packages/thirdweb/src/react/web Expand file tree Collapse file tree 3 files changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ import { WalletEntryButton } from "../WalletEntryButton.js";
2828function AllWalletsUI ( props : {
2929 onBack : ( ) => void ;
3030 onSelect : ( wallet : Wallet ) => void ;
31- specifiedWallets : Wallet [ ] ;
3231 size : "compact" | "wide" ;
3332 client : ThirdwebClient ;
3433 recommendedWallets : Wallet [ ] | undefined ;
@@ -39,17 +38,11 @@ function AllWalletsUI(props: {
3938 const setSelectionData = useSetSelectionData ( ) ;
4039
4140 const walletList = useMemo ( ( ) => {
42- return walletInfos
43- . filter ( ( wallet ) => {
44- return (
45- props . specifiedWallets . findIndex ( ( x ) => x . id === wallet . id ) === - 1
46- ) ;
47- } )
48- . filter (
49- ( info ) =>
50- info . id !== "inApp" && info . id !== "embedded" && info . id !== "smart" ,
51- ) ;
52- } , [ props . specifiedWallets ] ) ;
41+ return walletInfos . filter (
42+ ( info ) =>
43+ info . id !== "inApp" && info . id !== "embedded" && info . id !== "smart" ,
44+ ) ;
45+ } , [ ] ) ;
5346
5447 const fuseInstance = useMemo ( ( ) => {
5548 return new Fuse ( walletList , {
Original file line number Diff line number Diff line change @@ -173,7 +173,6 @@ export const ConnectModalContent = (props: {
173173 onSelect = { setScreen }
174174 recommendedWallets = { props . recommendedWallets }
175175 size = { props . size }
176- specifiedWallets = { props . wallets }
177176 />
178177 </ Suspense >
179178 ) ;
Original file line number Diff line number Diff line change @@ -104,7 +104,6 @@ export function WalletAuth(props: {
104104 } }
105105 recommendedWallets = { undefined }
106106 size = { props . size }
107- specifiedWallets = { [ ] }
108107 />
109108 </ Suspense >
110109 ) ;
You can’t perform that action at this time.
0 commit comments