fix onclick listener in connection info status
This commit is contained in:
parent
33d5987269
commit
f2bb9ea316
@ -39,15 +39,22 @@ const ConnectionInfo: FC = () => {
|
||||
(close: () => void) => {
|
||||
if (guild === null) return null;
|
||||
if (!isLoaded(selfMember)) return null;
|
||||
return <ConnectionInfoContextMenu guild={guild} selfMember={selfMember.value} relativeToRef={rootRef} close={close} />;
|
||||
return (
|
||||
<ConnectionInfoContextMenu
|
||||
guild={guild}
|
||||
selfMember={selfMember.value}
|
||||
relativeToRef={rootRef}
|
||||
close={close}
|
||||
/>
|
||||
);
|
||||
},
|
||||
[guild, selfMember],
|
||||
);
|
||||
|
||||
if (guild) {
|
||||
return (
|
||||
<div ref={rootRef} className="connection-info">
|
||||
<div onClick={toggleContextMenu}>
|
||||
<div ref={rootRef} className="connection-info" onClick={toggleContextMenu}>
|
||||
<div>
|
||||
<MemberElement guild={guild} member={displayMember} />
|
||||
</div>
|
||||
{contextMenu}
|
||||
|
Loading…
Reference in New Issue
Block a user