diff --git a/client/app/(profiles)/profile/[slug]/components/sections/About.jsx b/client/app/(profiles)/profile/[slug]/components/sections/About.jsx index 14f5db5c..162b613a 100644 --- a/client/app/(profiles)/profile/[slug]/components/sections/About.jsx +++ b/client/app/(profiles)/profile/[slug]/components/sections/About.jsx @@ -55,7 +55,7 @@ export default function About({ profile }) { About - -
+

{label}

-

+ {value} -

+
))} diff --git a/client/app/(profiles)/profile/[slug]/edit/components/Edit.jsx b/client/app/(profiles)/profile/[slug]/edit/components/Edit.jsx index d633c644..f3bfa68f 100644 --- a/client/app/(profiles)/profile/[slug]/edit/components/Edit.jsx +++ b/client/app/(profiles)/profile/[slug]/edit/components/Edit.jsx @@ -120,7 +120,7 @@ export default function Edit({ profileData }) {
{canBeEditedKeys.map((key, index) => (
-
+

{key === 'preferredHost' ? 'Preferred Host' : fuc(key)}

{currentlyEditingIndex === index ? ( key === 'bio' ? ( @@ -168,7 +168,7 @@ export default function Edit({ profileData }) { /> ) ) : ( -

{profile[key] || 'Unknown'}

+

{profile[key] || 'Unknown'}

)}
diff --git a/client/app/(profiles)/profiles/components/Hero/Profiles/Card.jsx b/client/app/(profiles)/profiles/components/Hero/Profiles/Card.jsx index 8f99342e..0573205f 100644 --- a/client/app/(profiles)/profiles/components/Hero/Profiles/Card.jsx +++ b/client/app/(profiles)/profiles/components/Hero/Profiles/Card.jsx @@ -34,7 +34,7 @@ export default function Card({ avatar_url, username, occupation, gender, locatio )}
-

{occupation || 'Unknown'}

+

{occupation || 'Unknown'}

@@ -65,8 +65,11 @@ export default function Card({ avatar_url, username, occupation, gender, locatio )} - - {location || 'Unknown'} + + + + {location || 'Unknown'} + diff --git a/server/src/schemas/Profile/index.js b/server/src/schemas/Profile/index.js index 79509f19..28232c14 100644 --- a/server/src/schemas/Profile/index.js +++ b/server/src/schemas/Profile/index.js @@ -14,7 +14,8 @@ const ProfileSchema = new Schema({ } }, occupation: { - type: String + type: String, + max: 64 }, gender: { type: String,