Reworked friend view
This commit is contained in:
1 parent
94c544b161
commit
061bed2b59
3 files changed
+8
-8
No files matched your search
@@ -6,7 +6,7 @@ export interface FriendEntry {
|
||||
avatar_url: string | null;
|
||||
}
|
||||
|
||||
export function FriendsList({ friends }: { friends: FriendEntry[] }) {
|
||||
export function FriendsList({ friends }: Readonly<{ friends: FriendEntry[] }>) {
|
||||
if (friends.length === 0) {
|
||||
return (
|
||||
<div className="flex flex-col items-center rounded-xl border border-dashed border-neutral-300 py-12">
|
||||
@@ -52,7 +52,7 @@ export function FriendsList({ friends }: { friends: FriendEntry[] }) {
|
||||
className="size-16 rounded-full object-cover"
|
||||
/>
|
||||
) : (
|
||||
<div className="flex size-8 items-center justify-center rounded-full bg-neutral-100 text-xs font-medium text-neutral-600">
|
||||
<div className="flex size-16 items-center justify-center rounded-full bg-neutral-100 text-xs font-medium text-neutral-600">
|
||||
{friend.friend_alias.charAt(0).toUpperCase()}
|
||||
</div>
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user