diff --git a/packages/web/src/components/chat/FriendsPage.tsx b/packages/web/src/components/chat/FriendsPage.tsx index a38aad11..8b150e54 100644 --- a/packages/web/src/components/chat/FriendsPage.tsx +++ b/packages/web/src/components/chat/FriendsPage.tsx @@ -100,11 +100,11 @@ export function FriendsPage({ mobile }: FriendsPageProps) {

No one's online right now.

) : ( -
+ <> {onlineFriends.map(friend => ( setPendingUnfriend({ id: friend.id, name: friend.displayName ?? parseFederatedUsername(friend.username).baseName })} onDm={() => handleOpenDm(friend.id, friend.homeUserId ?? undefined, friend.homeInstance)} /> ))} -
+ )} ); @@ -120,11 +120,11 @@ export function FriendsPage({ mobile }: FriendsPageProps) {

No friends yet — add someone!

) : ( -
+ <> {friends.map(friend => ( setPendingUnfriend({ id: friend.id, name: friend.displayName ?? parseFederatedUsername(friend.username).baseName })} onDm={() => handleOpenDm(friend.id, friend.homeUserId ?? undefined, friend.homeInstance)} /> ))} -
+ )} ); @@ -140,7 +140,7 @@ export function FriendsPage({ mobile }: FriendsPageProps) {

No pending requests — Nori is napping.

) : ( -
+ <> {pendingIncoming.map(req => ( cancelFriendRequest(req.id)} /> ))} -
+ )} ); @@ -911,43 +911,41 @@ function FriendItem({ friend, onRemove, onDm }: { friend: TaggedFriend, onRemove const { baseName: friendBaseName } = parseFederatedUsername(friend.username); const friendDisplayName = friend.displayName ?? friendBaseName; return ( -
-
-
- -
-
- {friendDisplayName} - @{friend.username} -
-
- {statusLabel[friend.status] ?? friend.status} - {instanceLabel && ( - via {instanceLabel} - )} -
+
+
+ +
+
+ {friendDisplayName} + @{friend.username} +
+
+ {statusLabel[friend.status] ?? friend.status} + {instanceLabel && ( + via {instanceLabel} + )}
-
- - -
+
+
+ +
); @@ -967,10 +965,9 @@ function RequestItem({ request, type, onAccept, onDecline, onCancel }: { const reqDisplayName = user.displayName ?? reqBaseName; return ( -
-
-
- +
+
+
{reqDisplayName} @@ -1017,7 +1014,6 @@ function RequestItem({ request, type, onAccept, onDecline, onCancel }: { )} -
);