File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import {
1616import Image from 'next/image'
1717import Link from 'next/link'
1818import { FC , useState } from 'react'
19- import { AiOutlineCheckCircle , AiOutlineDisconnect } from 'react-icons/ai'
19+ import { AiOutlineCheckCircle , AiOutlineDisconnect , AiOutlineMeh } from 'react-icons/ai'
2020import { FiExternalLink } from 'react-icons/fi'
2121import { AccountName } from './AccountName' // Assuming AccountName is in the same directory
2222
@@ -138,6 +138,21 @@ export const ConnectButton: FC<ConnectButtonProps> = () => {
138138 < div className = "overflow-scroll max-h-52 md:max-h-80" >
139139 { chosenWallet &&
140140 ( accounts || [ ] ) . map ( ( acc ) => {
141+ if ( acc . address . startsWith ( '0x' ) ) {
142+ const truncatedEVMAddress = truncateHash ( acc . address , 10 )
143+ return (
144+ < div
145+ key = { acc . address }
146+ className = { `p-3 flex justify-between items-center cursor-pointer hover:bg-red-2 dark:hover:bg-red-18 transition duration-300}` }
147+ >
148+ < div >
149+ < AccountName account = { acc } />
150+ < p className = "text-xs" > { truncatedEVMAddress } </ p >
151+ </ div >
152+ < AiOutlineMeh size = { 16 } className = "text-red-500" />
153+ </ div >
154+ )
155+ }
141156 const encodedAddress = encodeAddress ( acc . address , activeChain ?. ss58Prefix || 42 )
142157 const truncatedEncodedAddress = truncateHash ( encodedAddress , 10 )
143158 return (
You can’t perform that action at this time.
0 commit comments