diff --git a/src/components/Shell/PeerListItem.tsx b/src/components/Shell/PeerListItem.tsx index 7117875..11fda68 100644 --- a/src/components/Shell/PeerListItem.tsx +++ b/src/components/Shell/PeerListItem.tsx @@ -61,7 +61,7 @@ export const PeerListItem = ({ const isPeerConnectionDirect = peerConnectionTypes[peer.peerId] === PeerConnectionType.DIRECT - const handleListItemClick = () => { + const handleListItemTextClick = () => { setShowPeerDialog(true) } @@ -71,63 +71,59 @@ export const PeerListItem = ({ return ( <> - + - - {hasPeerConnection ? ( - - You are connected directly to{' '} - - {peer.userId} - - - ) : ( - <> - You are connected to{' '} - - {peer.userId} - {' '} - via a relay server. Your connection is still private and - encrypted, but performance may be degraded. - - ) - } - > - - {isPeerConnectionDirect ? ( - - ) : ( - - )} - - - ) : null} + - {verificationStateDisplayMap[peer.verificationState]} + {hasPeerConnection ? ( + + You are connected directly to{' '} + + {peer.userId} + + + ) : ( + <> + You are connected to{' '} + + {peer.userId} + {' '} + via a relay server. Your connection is still private and + encrypted, but performance may be degraded. + + ) + } + > + + {isPeerConnectionDirect ? ( + + ) : ( + + )} + + + ) : null} + + {verificationStateDisplayMap[peer.verificationState]} + + {peer.userId} - {peer.userId} {peer.peerId in peerAudios && ( )}