From f417cd2e69357b7dda55012544c4bf12e57ec48a Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Mon, 23 Mar 2026 21:31:32 +0200 Subject: [PATCH] Make "Incoming requests" link to user page --- app/features/friends/routes/friends.module.css | 2 ++ app/features/friends/routes/friends.tsx | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/features/friends/routes/friends.module.css b/app/features/friends/routes/friends.module.css index dd3b58731..734ecb8b4 100644 --- a/app/features/friends/routes/friends.module.css +++ b/app/features/friends/routes/friends.module.css @@ -11,12 +11,14 @@ align-items: center; gap: var(--s-2); font-weight: var(--weight-semi); + color: var(--color-text); } .userName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; + font-size: var(--font-sm); } .friendsListHeader { diff --git a/app/features/friends/routes/friends.tsx b/app/features/friends/routes/friends.tsx index 7951eff39..aa7475f3f 100644 --- a/app/features/friends/routes/friends.tsx +++ b/app/features/friends/routes/friends.tsx @@ -1,5 +1,5 @@ import { useTranslation } from "react-i18next"; -import { Form, useLoaderData, useSearchParams } from "react-router"; +import { Form, Link, useLoaderData, useSearchParams } from "react-router"; import { Avatar } from "~/components/Avatar"; import { Divider } from "~/components/Divider"; import { Main } from "~/components/Main"; @@ -64,7 +64,7 @@ function IncomingRequestsSection() {
{data.incomingRequests.map((request) => (
-
+ {request.sender.username} -
+
@@ -115,7 +115,7 @@ function PendingRequestsSection() {
{data.pendingRequests.map((request) => (
-
+ {request.receiver.username} -
+