add more user information to member sidebar

This commit is contained in:
Pavel Prichodko 2022-06-14 11:25:36 +02:00
parent c79bcb62e1
commit 90292ba42e
No known key found for this signature in database
GPG Key ID: 0EB8D75C775AB6F1
3 changed files with 8 additions and 3 deletions

View File

@ -20,7 +20,7 @@ export const DisconnectDialog = (props: Props) => {
<Flex direction="column" align="center" gap="2">
<Avatar size={64} />
<Heading weight="600">{account.username}</Heading>
<Text color="gray">Chatkey: {account.chatKey}</Text>
<Text color="gray">Chatkey: {account.publicKey}</Text>
<EmojiHash />
</Flex>
</Dialog.Body>

View File

@ -18,7 +18,12 @@ export const MemberItem = (props: Props) => {
return (
<Flex gap="2" align="center" css={{ height: 56 }}>
<Avatar size={32} indicator={indicator} colorHash={colorHash} />
<Avatar
size={32}
indicator={indicator}
name={username}
colorHash={colorHash}
/>
<div>
<Flex align="center" gap={1}>
<Text size="15" color="accent" truncate>

View File

@ -17,7 +17,7 @@ export const UserItem = (props: Props) => {
return (
<Flex align="center" justify="between">
<Flex gap="2" align="center" css={{ height: 56 }}>
<Avatar size={32} />
<Avatar size={32} name={account.username} />
<div>
<Flex align="center" gap={1}>
<Text size="15" color="accent">