Skip to content

Commit

Permalink
chore: update user display
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksandr Raspopov committed Dec 12, 2024
1 parent 906cea1 commit d2dae1b
Showing 1 changed file with 35 additions and 37 deletions.
72 changes: 35 additions & 37 deletions ui/src/components/shared/UserDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,46 +75,44 @@ export function UserDisplay() {
>
<Card className="user-display" styles={{ body: { cursor: "pointer", padding: 12 } }}>
<Flex gap={12} vertical>
<Flex justify="space-between">
<Avatar shape="square" size="large" src={issuer.logo} />
<IconChevron />
</Flex>
<Flex gap={4} vertical>
<Typography.Text
ellipsis={{ tooltip: selectedIdentityDisplayName }}
style={{ fontWeight: 600 }}
type="secondary"
>
{selectedIdentityDisplayName}
</Typography.Text>

<Flex align="center" gap={4}>
<Tag
style={{
background: "transparent",
border: "1px solid",
borderColor: token.colorInfoBorder,
borderRadius: 6,
color: token.colorTextSecondary,
fontSize: 12,
fontWeight: 500,
marginRight: 0,
padding: "3px 6px",
}}
>
DID
</Tag>
<Flex align="center" gap={8} justify="space-between">
<Avatar shape="square" size="large" src={issuer.logo} style={{ flexShrink: 0 }} />

<Typography.Text
copyable={{
icon: [<IconCopy key={0} />, <IconCheck key={1} />],
text: identifier,
}}
type="secondary"
>
{formatIdentifier(identifier, { short: true })}
<Flex gap={4} style={{ width: "100%" }} vertical>
<Typography.Text style={{ fontWeight: 600 }} type="secondary">
{selectedIdentityDisplayName}
</Typography.Text>

<Flex align="center" gap={4}>
<Tag
style={{
background: "transparent",
border: "1px solid",
borderColor: token.colorInfoBorder,
borderRadius: 6,
color: token.colorTextSecondary,
fontSize: 12,
fontWeight: 500,
marginRight: 0,
padding: "3px 6px",
}}
>
DID
</Tag>

<Typography.Text
copyable={{
icon: [<IconCopy key={0} />, <IconCheck key={1} />],
text: identifier,
}}
type="secondary"
>
{formatIdentifier(identifier, { short: true })}
</Typography.Text>
</Flex>
</Flex>

<IconChevron style={{ flexShrink: 0 }} />
</Flex>
</Flex>
</Card>
Expand Down

0 comments on commit d2dae1b

Please sign in to comment.