@@ -81,34 +81,42 @@ function WalletConnect(props: WalletConnectProps) {
8181 // TODO: show only wcAdapters of current chain
8282 return (
8383 < div className = "w3ajs-wallet-connect w3a-wallet-connect" >
84- < i className = "w3a-wallet-connect__logo" > { walletConnectIcon } </ i >
85- < div className = "w3ajs-wallet-connect__container w3a-wallet-connect__container" >
84+ < div
85+ className = { `w3ajs-wallet-connect__container w3a-wallet-connect__container${
86+ deviceDetails . os === OS_MAP . Android ? " w3a-wallet-connect__container--android" : ""
87+ } `}
88+ >
89+ < div className = "w3a-wallet-connect__logo" > { walletConnectIcon } </ div >
8690 { deviceDetails . platform === PLATFORMS_MAP . desktop ? (
87- < >
91+ < div className = "w3a-wallet-connect__container-desktop" >
8892 < div > Scan QR code with a WalletConnect-compatible wallet</ div >
8993 < div className = "w3ajs-wallet-connect-qr w3a-wallet-connect-qr" >
9094 < QRCode size = { 200 } value = { walletConnectUri } />
9195 </ div >
92- </ >
96+ </ div >
9397 ) : (
9498 < >
9599 { links . map ( ( link ) => {
96100 // TODO: render logo and on click,
97101 // https://github.com/WalletConnect/walletconnect-monorepo/blob/54f3ca0b1cd1ac24e8992a5a812fdfad01769abb/packages/helpers/browser-utils/src/registry.ts#L24
98102 // format and show
99103 return deviceDetails . os === OS_MAP . iOS ? (
100- < a key = { link . name } href = { link . href } rel = "noopener noreferrer" target = "_blank" >
101- < button type = "button" className = "w3a-button w3a-button--icon" >
102- { link . logo }
103- </ button >
104- < p className = "w3a-adapter-item__label" > { link . name } </ p >
105- </ a >
104+ < div className = "w3a-wallet-connect__container-ios" >
105+ < a key = { link . name } href = { link . href } rel = "noopener noreferrer" target = "_blank" >
106+ < button type = "button" className = "w3a-button w3a-button--icon" >
107+ < img src = { link . logo } height = "auto" width = "auto" alt = { `login-${ link . name } ` } />
108+ </ button >
109+ < p className = "w3a-adapter-item__label" > { link . name } </ p >
110+ </ a >
111+ </ div >
106112 ) : (
107- < a key = { link . name } href = { link . href } rel = "noopener noreferrer" target = "_blank" >
108- < button type = "button" className = "w3a-button w3a-button--icon" >
109- Connect
110- </ button >
111- </ a >
113+ < div className = "w3a-wallet-connect__container-android" >
114+ < a key = { link . name } href = { link . href } rel = "noopener noreferrer" target = "_blank" >
115+ < button type = "button" className = "w3a-button" >
116+ Connect
117+ </ button >
118+ </ a >
119+ </ div >
112120 ) ;
113121 } ) }
114122 </ >
0 commit comments