Skip to content

Commit

Permalink
Update delete-token-modal.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-tey committed Dec 22, 2024
1 parent f20c674 commit 76d0696
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions apps/web/ui/modals/delete-token-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,20 @@ function DeleteTokenModal({
</div>

<div className="flex items-center gap-2">
<Tooltip content={token.user.name}>
<img
src={
token.user.isMachine
? "https://api.dicebear.com/7.x/bottts/svg?seed=Sara"
: token.user.image ||
`${DICEBEAR_AVATAR_URL}${token.user.id}`
}
alt={token.user.name!}
className="size-5 rounded-full"
/>
</Tooltip>
{token.user && (
<Tooltip content={token.user.name}>
<img
src={
token.user.isMachine
? "https://api.dicebear.com/7.x/bottts/svg?seed=Sara"
: token.user.image ||
`${DICEBEAR_AVATAR_URL}${token.user.id}`
}
alt={token.user.name!}
className="size-5 rounded-full"
/>
</Tooltip>
)}
<p className="text-xs text-neutral-500">
{new Date(token.createdAt).toLocaleDateString("en-us", {
month: "short",
Expand Down

0 comments on commit 76d0696

Please sign in to comment.