@@ -213,7 +213,7 @@ const ConnectWallet = (props: ConnectWalletProps) => {
213213 // if doesn't have wallet connect & doesn't have install links, must be a custom adapter
214214 if ( button . hasInjectedWallet || ( ! button . hasWalletConnect && ! button . hasInstallLinks ) ) {
215215 props . handleExternalWalletClick ( { adapter : button . name } ) ;
216- } else if ( button . hasWalletConnect ) {
216+ } else if ( button . hasWalletConnect && props . walletConnectUri ) {
217217 setSelectedButton ( button ) ;
218218 setSelectedWallet ( true ) ;
219219 setCurrentPage ( CONNECT_WALLET_PAGES . SELECTED_WALLET ) ;
@@ -254,7 +254,10 @@ const ConnectWallet = (props: ConnectWalletProps) => {
254254 when = { selectedWallet ( ) }
255255 fallback = {
256256 < div class = "w3a--contents" >
257- < Show when = { totalExternalWallets ( ) > 15 } >
257+ < Show
258+ when = { totalExternalWallets ( ) > 15 && ! isLoading ( ) }
259+ fallback = { < div class = "w3a--w-full w3a--h-[46px] w3a--animate-pulse w3a--rounded-full w3a--bg-app-gray-200 dark:w3a--bg-app-gray-700" /> }
260+ >
258261 < input
259262 type = "text"
260263 value = { walletSearch ( ) }
@@ -268,6 +271,7 @@ const ConnectWallet = (props: ConnectWalletProps) => {
268271 placeholder = {
269272 isLoading ( ) ? t ( "modal.external.search-wallet-loading" ) : t ( "modal.external.search-wallet" , { count : `${ totalExternalWallets ( ) } ` } )
270273 }
274+ disabled = { isLoading ( ) }
271275 class = "w3a--appearance-none w3a--px-4 w3a--py-2.5 w3a--border w3a--text-app-gray-900 w3a--border-app-gray-300 w3a--bg-app-gray-50 dark:w3a--bg-app-gray-700 dark:w3a--border-app-gray-600 dark:w3a--text-app-white placeholder:w3a--text-app-gray-500 dark:placeholder:w3a--text-app-gray-400 placeholder:w3a--text-sm placeholder:w3a--font-normal w3a--rounded-full w3a--outline-none focus:w3a--outline-none active:w3a--outline-none"
272276 />
273277 </ Show >
@@ -288,7 +292,13 @@ const ConnectWallet = (props: ConnectWalletProps) => {
288292 < Show
289293 when = { ! isLoading ( ) }
290294 fallback = {
291- < div class = "w3a--text-app-white w3a--flex-1 w3a--h-full w3a--w-full w3a--animate-pulse w3a--rounded-lg w3a--bg-app-gray-200 dark:w3a--bg-app-gray-700" />
295+ < div class = "w3a--flex w3a--flex-col w3a--gap-y-2 w3a--pr-1.5" >
296+ < For each = { Array ( 6 ) . fill ( 0 ) } >
297+ { ( _ ) => (
298+ < div class = "w3a--w-full w3a--h-[54px] w3a--animate-pulse w3a--rounded-lg w3a--bg-app-gray-200 dark:w3a--bg-app-gray-700" />
299+ ) }
300+ </ For >
301+ </ div >
292302 }
293303 >
294304 < div class = "w3a--flex w3a--flex-col w3a--gap-y-2 w3a--pr-1.5" >
@@ -327,16 +337,16 @@ const ConnectWallet = (props: ConnectWalletProps) => {
327337 </ div >
328338 }
329339 >
330- < div class = "w3a--relative w3a--bg-app-gray-200 w3a--rounded-lg w3a--h-[300px] w3a--w-[300px] w3a--mx-auto w3a--flex w3a--items-center w3a--justify-center" >
340+ < div class = "w3a--relative w3a--bg-app-gray-100 dark:w3a--bg-app-white w3a--rounded-lg w3a--h-[300px] w3a--w-[300px] w3a--mx-auto w3a--flex w3a--items-center w3a--justify-center" >
331341 < QRCodeCanvas
332342 value = { props . walletConnectUri || "" }
333343 level = "low"
334344 backgroundColor = "transparent"
335345 backgroundAlpha = { 0 }
336346 foregroundColor = "#000000"
337347 foregroundAlpha = { 1 }
338- width = { 280 }
339- height = { 280 }
348+ width = { 300 }
349+ height = { 300 }
340350 x = { 0 }
341351 y = { 0 }
342352 maskType = { MaskType . FLOWER_IN_SQAURE }
0 commit comments