@@ -77,21 +77,21 @@ export default function ConnectWallet({ who, kind = "component", height = "paddi
7777 [ clearValue , setActiveWallet , setActiveAccount ] ,
7878 ) ;
7979
80- const [ supportedRainbow , supportedTalisman ] = useMemo ( ( ) => {
81- return [ supported . some ( ( id ) => id === WalletID . RAINBOW ) , supported . some ( ( id ) => id === WalletID . TALISMAN ) ] ;
80+ const [ supportedWalletEvm , supportedWalletTalisman ] = useMemo ( ( ) => {
81+ return [ supported . some ( ( id ) => id === WalletID . EVM ) , supported . some ( ( id ) => id === WalletID . TALISMAN ) ] ;
8282 } , [ supported ] ) ;
8383
8484 useEffect ( ( ) => {
8585 if ( ! supported . some ( ( id ) => id === WalletID . TALISMAN ) && activeWallet === WalletID . TALISMAN ) {
8686 setActiveWallet ( undefined ) ;
8787 clearValue ( undefined ) ;
88- } else if ( ! supported . some ( ( id ) => id === WalletID . RAINBOW ) && activeWallet === WalletID . RAINBOW ) {
88+ } else if ( ! supported . some ( ( id ) => id === WalletID . EVM ) && activeWallet === WalletID . EVM ) {
8989 setActiveWallet ( undefined ) ;
9090 clearValue ( undefined ) ;
9191 }
9292 } , [ supported , activeWallet , clearValue , setActiveWallet ] ) ;
9393
94- const walletIcon = kind === "primary" ? null : activeWallet === WalletID . RAINBOW ? "rainbow.svg " : "talisman-red.svg" ;
94+ const walletIcon = kind === "primary" ? null : activeWallet === WalletID . EVM ? "evm.png " : "talisman-red.svg" ;
9595
9696 // Major for page header
9797 if ( kind === "primary" && sender ?. address ) {
@@ -105,7 +105,9 @@ export default function ConnectWallet({ who, kind = "component", height = "paddi
105105
106106 return ( talismanAccounts . length || activeAddress ) && activeWallet ? (
107107 < Button onClick = { handleDisconnect } kind = { kind } height = { height } >
108- { walletIcon && < Image width = { 16 } height = { 16 } alt = "Wallet" src = { `/images/wallet/${ walletIcon } ` } /> }
108+ { walletIcon && (
109+ < Image width = { 16 } height = { 16 } alt = "Wallet" src = { `/images/wallet/${ walletIcon } ` } className = "rounded-full" />
110+ ) }
109111 < span > Disconnect</ span >
110112 </ Button >
111113 ) : (
@@ -129,18 +131,18 @@ export default function ConnectWallet({ who, kind = "component", height = "paddi
129131 connectTalisman ( ) ;
130132 setIsOpenFalse ( ) ;
131133 } }
132- disabled = { ! supportedTalisman }
134+ disabled = { ! supportedWalletTalisman }
133135 />
134136 < Item
135137 who = { who }
136- icon = "rainbow.svg "
137- name = "Rainbow "
138+ icon = "evm.png "
139+ name = "EVM wallets "
138140 onClick = { ( ) => {
139- setActiveWallet ( WalletID . RAINBOW ) ;
141+ setActiveWallet ( WalletID . EVM ) ;
140142 openConnectModal ?.( ) ;
141143 setIsOpenFalse ( ) ;
142144 } }
143- disabled = { ! supportedRainbow }
145+ disabled = { ! supportedWalletEvm }
144146 />
145147 </ div >
146148 </ Modal >
@@ -195,7 +197,7 @@ function Item({
195197 disabled = { disabled }
196198 onClick = { onClick }
197199 >
198- < Image width = { 20 } height = { 20 } alt = "Wallet icon" src = { `/images/wallet/${ icon } ` } />
200+ < Image width = { 20 } height = { 20 } alt = "Wallet icon" src = { `/images/wallet/${ icon } ` } className = "rounded-full" />
199201 < span > { name } </ span >
200202 </ button >
201203 </ Tooltip >
0 commit comments