From 31f0dd7a8185c533843e61eb302e46b4a6952539 Mon Sep 17 00:00:00 2001 From: Anton Tranelis <31516529+antontranelis@users.noreply.github.com> Date: Wed, 5 Mar 2025 21:26:16 +0000 Subject: [PATCH] fix(source): fixed attestation layout (#180) * fixed attestation layout * fixed for attestations on other map instances --------- Co-authored-by: Ulf Gebhardt --- src/Components/Profile/Templates/TabsView.tsx | 50 ++++++++++++------- 1 file changed, 31 insertions(+), 19 deletions(-) diff --git a/src/Components/Profile/Templates/TabsView.tsx b/src/Components/Profile/Templates/TabsView.tsx index fa045374..bec02e24 100644 --- a/src/Components/Profile/Templates/TabsView.tsx +++ b/src/Components/Profile/Templates/TabsView.tsx @@ -150,29 +150,41 @@ export const TabsView = ({ - -
-
-
- Avatar + {getUserProfile(a.user_created.id) ? ( + +
+
+
+ {getUserProfile(a.user_created.id)?.image && ( + Avatar + )} +
+
+
+
+ {getUserProfile(a.user_created.id)?.name ?? + a.user_created.first_name}{' '} +
+
+ {timeAgo(a.date_created)} +
-
-
- {getUserProfile(a.user_created.id)?.name} -
-
- {timeAgo(a.date_created)} -
+ + ) : ( +
+
{a.user_created.first_name}
+
+ {timeAgo(a.date_created)}
- + )} ))}