+
+ {userData.name}
+
- {userData?.profile?.desiredConnections && (
+ < div
+ className="space-y-6 pt-4 border-t border-gray-200">
+
+ {userData?.profile?.desiredConnections && (
+
<
+ h2 className="text-sm font-medium text-gray-500 uppercase tracking-wider"> Desired
+ Connections
+
+ < ul
+ className="flex flex-wrap gap-2 mt-1">
+ {userData?.profile?.desiredConnections.map((value, idx) => (
+
+ {value?.connection?.name
+ }
+
+ ))
+ }
+
+
+ )
+ }
+
+ {
+ userData?.profile?.gender && (
+
+
Gender
+ < p
+ className="mt-1 capitalize"> {userData.profile.gender}
+
+ )
+ }
+
+ {
+ userData?.profile?.birthYear && (
+
+
Age
+ < p
+ className="mt-1 capitalize"> {new Date().getFullYear() - userData.profile.birthYear}
+
+ )
+ }
+
+ {
+ userData?.profile?.location && (
+
+
Location
+ < p
+ className={pStyle}> {userData.profile.location}
+
+ )
+ }
+
+ {
+ userData?.profile?.occupation && (
+
+
Occupation
+ < p
+ className={pStyle}> {userData.profile.occupation}
+
+ )
+ }
+
+ {
+ userData?.profile?.personalityType && (
+
+
Personality
+ Type
+ < p
+ className={pStyle}> {userData.profile.personalityType}
+
+ )
+ }
+
+ {
+ userData?.profile?.conflictStyle && (
+
+
Conflict
+ Style
+ < p
+ className={pStyle}> {userData.profile.conflictStyle}
+
+ )
+ }
+
+ {
+ userData?.profile?.intellectualInterests && (
<
- h2 className="text-sm font-medium text-gray-500 uppercase tracking-wider"> Desired
- Connections
+ h2 className="text-sm font-medium text-gray-500 uppercase tracking-wider"> Interests
< ul
className="flex flex-wrap gap-2 mt-1">
- {userData?.profile?.desiredConnections.map((value, idx) => (
-
- {value?.connection?.name
- }
-
- ))
+ {
+ userData.profile.intellectualInterests.map((value, idx) => (
+
+ {value?.interest?.name
+ }
+
+ ))
}
)
- }
+ }
- {
- userData?.profile?.gender && (
-
-
Gender
- < p
- className="mt-1 capitalize"> {userData.profile.gender}
-
- )
- }
+ {
+ userData?.profile?.causeAreas && (
+
<
+ h2 className="text-sm font-medium text-gray-500 uppercase tracking-wider"> Cause
+ Areas
- {
- userData?.profile?.birthYear && (
-
-
Age
- < p
- className="mt-1 capitalize"> {new Date().getFullYear() - userData.profile.birthYear}
-
- )
- }
+ < ul
+ className="flex flex-wrap gap-2 mt-1">
+ {
+ userData.profile.causeAreas.map((value, idx) => (
+
+ {value?.causeArea?.name
+ }
+
+ ))
+ }
+
+
+ )
+ }
- {
- userData?.profile?.location && (
-
-
Location
- < p
- className={pStyle}> {userData.profile.location}
-
- )
- }
+ {
+ userData?.profile?.description && (
+
+
About
+ < p
+ className={pStyle}> {userData.profile.description}
+
+ )
+ }
- {
- userData?.profile?.occupation && (
-
-
Occupation
- < p
- className={pStyle}> {userData.profile.occupation}
-
- )
- }
+ {
+ userData?.profile?.contactInfo && (
+
+
Contact
+ < p
+ className={pStyle}> {userData.profile.contactInfo}
+
+ )
+ }
- {
- userData?.profile?.personalityType && (
-
-
Personality
- Type
- < p
- className={pStyle}> {userData.profile.personalityType}
-
- )
- }
+ {
+ userData?.profile?.promptAnswers && (
+
<
+ h2 className="text-sm font-medium text-gray-500 uppercase tracking-wider"> Prompt
+ Answers
- {
- userData?.profile?.conflictStyle && (
-
-
Conflict
- Style
- < p
- className={pStyle}> {userData.profile.conflictStyle}
-
- )
- }
+ < ul
+ className="flex flex-wrap gap-2 mt-1">
+ {
+ userData.profile.promptAnswers.map((value, idx) => (
+
+ • {value.prompt} {value.answer}
+
+ ))
+ }
+
+
+ )
+ }
- {
- userData?.profile?.intellectualInterests && (
-
<
- h2 className="text-sm font-medium text-gray-500 uppercase tracking-wider"> Interests
+ {
+ images &&
+
+ {/*
Photos
*/}
+
+ {Array.from(new Set(images)).map((img, index) => ( // Set is a hack to avoid a bug where duplicates fill in images when we navigate different pages
+
+
+
+ ))}
+
+
+ }
- < ul
- className="flex flex-wrap gap-2 mt-1">
- {
- userData.profile.intellectualInterests.map((value, idx) => (
-
- {value?.interest?.name
- }
-
- ))
- }
-
-
- )
- }
+ {/*
*/
+ }
+ {/*
Creation Date
*/
+ }
+ {/*
*/
+ }
+ {/* {user.profile.createdAt}*/
+ }
+ {/* {new Date(user.profile.createdAt).toLocaleDateString("en-US", {*/
+ }
+ {/* year: "numeric",*/
+ }
+ {/* month: "long",*/
+ }
+ {/* day: "numeric",*/
+ }
+ {/* })}*/
+ }
+ {/*
*/
+ }
+ {/*
*/
+ }
- {
- userData?.profile?.causeAreas && (
-
<
- h2 className="text-sm font-medium text-gray-500 uppercase tracking-wider"> Cause
- Areas
-
- < ul
- className="flex flex-wrap gap-2 mt-1">
- {
- userData.profile.causeAreas.map((value, idx) => (
-
- {value?.causeArea?.name
- }
-
- ))
- }
-
-
- )
- }
-
- {
- userData?.profile?.description && (
-
-
About
- < p
- className={pStyle}> {userData.profile.description}
-
- )
- }
-
- {
- userData?.profile?.contactInfo && (
-
-
Contact
- < p
- className={pStyle}> {userData.profile.contactInfo}
-
- )
- }
-
- {
- userData?.profile?.promptAnswers && (
-
<
- h2 className="text-sm font-medium text-gray-500 uppercase tracking-wider"> Prompt
- Answers
-
- < ul
- className="flex flex-wrap gap-2 mt-1">
- {
- userData.profile.promptAnswers.map((value, idx) => (
-
- • {value.prompt} {value.answer}
-
- ))
- }
-
-
- )
- }
-
- {
- userData?.profile?.images && (
-
-
Images
- < p
- className={pStyle}> {userData.profile.images} TODO
-
- )
- }
-
- {/*
*/
- }
- {/*
Creation Date
*/
- }
- {/*
*/
- }
- {/* {user.profile.createdAt}*/
- }
- {/* {new Date(user.profile.createdAt).toLocaleDateString("en-US", {*/
- }
- {/* year: "numeric",*/
- }
- {/* month: "long",*/
- }
- {/* day: "numeric",*/
- }
- {/* })}*/
- }
- {/*
*/
- }
- {/*
*/
- }
-
-
-