mirror of
https://github.com/spacebarchat/client.git
synced 2024-11-25 03:32:54 +01:00
fix double user popouts opening
This commit is contained in:
parent
2b87afe9dd
commit
a0cc376346
@ -61,7 +61,8 @@ function Avatar(props: Props) {
|
|||||||
const user = props.user ?? app.account;
|
const user = props.user ?? app.account;
|
||||||
if (!user) return null;
|
if (!user) return null;
|
||||||
|
|
||||||
const Base = props.onClick ? Yes(props.onClick) : FloatingTrigger;
|
// if onClick is null, use a div. if we pass a function, use yes. otherwise use FloatingTrigger
|
||||||
|
const Base = props.onClick === null ? "div" : props.onClick ? Yes(props.onClick) : FloatingTrigger;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Floating
|
<Floating
|
||||||
|
@ -84,7 +84,7 @@ function MemberListItem({ item }: Props) {
|
|||||||
<Container>
|
<Container>
|
||||||
<Wrapper offline={presence?.status === PresenceUpdateStatus.Offline}>
|
<Wrapper offline={presence?.status === PresenceUpdateStatus.Offline}>
|
||||||
<AvatarWrapper>
|
<AvatarWrapper>
|
||||||
<Avatar user={item.user!} size={32} presence={presence} showPresence />
|
<Avatar user={item.user!} size={32} presence={presence} showPresence onClick={null} />
|
||||||
</AvatarWrapper>
|
</AvatarWrapper>
|
||||||
<TextWrapper>
|
<TextWrapper>
|
||||||
<Text color={item.roleColor}>{item.nick ?? item.user?.username}</Text>
|
<Text color={item.roleColor}>{item.nick ?? item.user?.username}</Text>
|
||||||
|
Loading…
Reference in New Issue
Block a user