From 1fe72cd4f52d174082e21d65e47ec98ba52e4b8f Mon Sep 17 00:00:00 2001 From: Pau Costa Date: Mon, 19 Feb 2024 20:00:58 +0100 Subject: [PATCH] :lipstick: UI adjustment Signed-off-by: Pau Costa --- client/src/routes/post.tsx | 2 +- client/src/routes/profile.tsx | 32 +++++++++++++++++++++++--------- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/client/src/routes/post.tsx b/client/src/routes/post.tsx index 4d6f800..d4840a0 100644 --- a/client/src/routes/post.tsx +++ b/client/src/routes/post.tsx @@ -137,7 +137,7 @@ export default function PostView() { {postToDisplay?.comments?.map((comment) => ( - + {comment.createdBy?.firstName} {comment.createdBy?.lastName} diff --git a/client/src/routes/profile.tsx b/client/src/routes/profile.tsx index c80aca4..f2055c9 100644 --- a/client/src/routes/profile.tsx +++ b/client/src/routes/profile.tsx @@ -85,6 +85,10 @@ export default function Profile(props: ProfileProps) { @@ -138,15 +142,25 @@ export default function Profile(props: ProfileProps) { - - {userToDisplay!.posts?.map((post: Post) => ( - - )) || ( - - This user has no posts yet! - - )} - + + + {userToDisplay!.posts?.map((post: Post) => ( + + )) || ( + + This user has no posts yet! + + )} + + )}