1
0
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:
Puyodead1 2023-12-22 17:09:09 -05:00
parent 2b87afe9dd
commit a0cc376346
No known key found for this signature in database
GPG Key ID: A4FA4FEC0DD353FC
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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>