From 5f7ecb0e573f9ee6e7ca80f5aef3c8fb3a7b8e50 Mon Sep 17 00:00:00 2001 From: Rodrigo Louro Date: Mon, 27 Apr 2026 16:44:28 +0200 Subject: [PATCH 1/2] Fix: Missing comments row on Volunteer Profile #413 Fix: Missing comments row on Volunteer Profile #413 --- public/locales/de/translations.json | 1 + public/locales/en/translations.json | 1 + .../Profile/sections/VolunteerProfile/DisplayFields.tsx | 7 +++++++ .../Profile/sections/VolunteerProfile/VolunteerProfile.tsx | 1 + 4 files changed, 10 insertions(+) diff --git a/public/locales/de/translations.json b/public/locales/de/translations.json index 00afde9c..622d8595 100644 --- a/public/locales/de/translations.json +++ b/public/locales/de/translations.json @@ -607,6 +607,7 @@ "volunteerType": "Freiwilligen-Typ", "activities": "Aktivitäten", "skills": "Fähigkeiten & Erfahrungen", + "comments": "Kommentare", "cancel": "Abbrechen", "saveChanges": "Änderungen speichern", "saveSuccess": "Profil erfolgreich aktualisiert", diff --git a/public/locales/en/translations.json b/public/locales/en/translations.json index 95509e2e..e59911ef 100644 --- a/public/locales/en/translations.json +++ b/public/locales/en/translations.json @@ -606,6 +606,7 @@ "volunteerType": "Volunteer type", "activities": "Activities", "skills": "Skills & experience", + "comments": "Comments", "cancel": "Cancel", "saveChanges": "Save changes", "saveSuccess": "Profile updated successfully", diff --git a/src/components/Dashboard/Profile/sections/VolunteerProfile/DisplayFields.tsx b/src/components/Dashboard/Profile/sections/VolunteerProfile/DisplayFields.tsx index 72602cbe..5d11f90f 100644 --- a/src/components/Dashboard/Profile/sections/VolunteerProfile/DisplayFields.tsx +++ b/src/components/Dashboard/Profile/sections/VolunteerProfile/DisplayFields.tsx @@ -48,6 +48,7 @@ type Props = { volunteerTypeStatus: StatusValue | undefined; activities: string[]; skills: string[]; + infoAbout: string; t: (key: string) => string; }; @@ -60,6 +61,7 @@ export function DisplayFields({ volunteerTypeStatus, activities, skills, + infoAbout, t, }: Props) { return ( @@ -120,6 +122,11 @@ export function DisplayFields({ )} + + + {t("dashboard.volunteerProfile.profileSection.comments")} + {infoAbout || } + ); } diff --git a/src/components/Dashboard/Profile/sections/VolunteerProfile/VolunteerProfile.tsx b/src/components/Dashboard/Profile/sections/VolunteerProfile/VolunteerProfile.tsx index c98fb2cf..a9b43262 100644 --- a/src/components/Dashboard/Profile/sections/VolunteerProfile/VolunteerProfile.tsx +++ b/src/components/Dashboard/Profile/sections/VolunteerProfile/VolunteerProfile.tsx @@ -169,6 +169,7 @@ export const VolunteerProfile = forwardRef(function volunteerTypeStatus={volunteer.statusType} activities={extractTitles(volunteer.activities)} skills={extractTitles(volunteer.skills)} + infoAbout={volunteer.infoAbout || ""} t={t} /> )} From 8c06dc23527b210c07281a113c3da5f9c64f57ab Mon Sep 17 00:00:00 2001 From: Rodrigo Louro Date: Tue, 28 Apr 2026 10:12:21 +0200 Subject: [PATCH 2/2] Update: Rename prop & Remove Redundant Update: Rename prop & Remove Redundant --- .../Profile/sections/VolunteerProfile/DisplayFields.tsx | 6 +++--- .../Profile/sections/VolunteerProfile/VolunteerProfile.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Dashboard/Profile/sections/VolunteerProfile/DisplayFields.tsx b/src/components/Dashboard/Profile/sections/VolunteerProfile/DisplayFields.tsx index 5d11f90f..01841a64 100644 --- a/src/components/Dashboard/Profile/sections/VolunteerProfile/DisplayFields.tsx +++ b/src/components/Dashboard/Profile/sections/VolunteerProfile/DisplayFields.tsx @@ -48,7 +48,7 @@ type Props = { volunteerTypeStatus: StatusValue | undefined; activities: string[]; skills: string[]; - infoAbout: string; + comments: string | undefined; t: (key: string) => string; }; @@ -61,7 +61,7 @@ export function DisplayFields({ volunteerTypeStatus, activities, skills, - infoAbout, + comments, t, }: Props) { return ( @@ -125,7 +125,7 @@ export function DisplayFields({ {t("dashboard.volunteerProfile.profileSection.comments")} - {infoAbout || } + {comments || } ); diff --git a/src/components/Dashboard/Profile/sections/VolunteerProfile/VolunteerProfile.tsx b/src/components/Dashboard/Profile/sections/VolunteerProfile/VolunteerProfile.tsx index a9b43262..cfe79b33 100644 --- a/src/components/Dashboard/Profile/sections/VolunteerProfile/VolunteerProfile.tsx +++ b/src/components/Dashboard/Profile/sections/VolunteerProfile/VolunteerProfile.tsx @@ -169,7 +169,7 @@ export const VolunteerProfile = forwardRef(function volunteerTypeStatus={volunteer.statusType} activities={extractTitles(volunteer.activities)} skills={extractTitles(volunteer.skills)} - infoAbout={volunteer.infoAbout || ""} + comments={volunteer.infoAbout} t={t} /> )}