From d7ef972669c6f2a034138ef0f0dce486d84bdbad Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Fri, 8 May 2026 15:06:37 +0200 Subject: [PATCH] "Conditionally render profile sections based on content and current user state, ensuring cleaner UI and improved logic." --- web/components/profile/profile-info.tsx | 93 ++++++++++++++----------- 1 file changed, 53 insertions(+), 40 deletions(-) diff --git a/web/components/profile/profile-info.tsx b/web/components/profile/profile-info.tsx index 19c303ff..49a71301 100644 --- a/web/components/profile/profile-info.tsx +++ b/web/components/profile/profile-info.tsx @@ -174,7 +174,9 @@ export function ProfileInfo(props: {
- + )} @@ -259,7 +261,7 @@ function ProfileContent(props: { refreshProfile, fromProfilePage, fromSignup, - isProfileVisible, + // isProfileVisible, // likesGiven, // likesReceived, // ships, @@ -282,9 +284,11 @@ function ProfileContent(props: { /> - - - + {(!!profile.interests?.length || !!profile.causes?.length) && ( + + + + )} {(profile.mbti || profile.big5_agreeableness) && ( @@ -299,48 +303,57 @@ function ProfileContent(props: { )} - - - + {profile.bio && ( + + + + )} - {isProfileVisible && ( + {currentUser && ( // // )} - - - + {currentUser && ( + + + + )} - - - + {currentUser && ( + + + + )} {!isCurrentUser && currentUser && (