mirror of
https://github.com/spacebarchat/client.git
synced 2024-11-24 19:32:34 +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;
|
||||
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 (
|
||||
<Floating
|
||||
|
@ -84,7 +84,7 @@ function MemberListItem({ item }: Props) {
|
||||
<Container>
|
||||
<Wrapper offline={presence?.status === PresenceUpdateStatus.Offline}>
|
||||
<AvatarWrapper>
|
||||
<Avatar user={item.user!} size={32} presence={presence} showPresence />
|
||||
<Avatar user={item.user!} size={32} presence={presence} showPresence onClick={null} />
|
||||
</AvatarWrapper>
|
||||
<TextWrapper>
|
||||
<Text color={item.roleColor}>{item.nick ?? item.user?.username}</Text>
|
||||
|
Loading…
Reference in New Issue
Block a user