diff --git a/src/components/Dashboard/Opportunities/OpportunityListController.tsx b/src/components/Dashboard/Opportunities/OpportunityListController.tsx index 49f35397..dd36d752 100644 --- a/src/components/Dashboard/Opportunities/OpportunityListController.tsx +++ b/src/components/Dashboard/Opportunities/OpportunityListController.tsx @@ -96,6 +96,7 @@ export function OpportunityListController({ currentPage={currentPage} setCurrentPage={setCurrentPage} districtsList={apiFilterOptions?.district ?? undefined} + volunteerId={volunteerId} /> ); } diff --git a/src/components/Dashboard/Opportunities/OpportunityTableList.tsx b/src/components/Dashboard/Opportunities/OpportunityTableList.tsx index fe0a2729..55f6a9c1 100644 --- a/src/components/Dashboard/Opportunities/OpportunityTableList.tsx +++ b/src/components/Dashboard/Opportunities/OpportunityTableList.tsx @@ -16,6 +16,7 @@ interface TableListProps { currentPage: number; setCurrentPage: (page: number) => void; districtsList?: OptionItem[]; + volunteerId?: string; } export function OpportunityTableList({ @@ -25,6 +26,7 @@ export function OpportunityTableList({ currentPage, setCurrentPage, districtsList, + volunteerId, }: TableListProps) { const { t } = useTranslation(); const { isAuthorized } = useAuth(); @@ -42,6 +44,7 @@ export function OpportunityTableList({ opportunity={opportunity} isLast={isLast} districtsList={districtsList} + volunteerId={volunteerId} /> ) : ( 1 ? numberOfVolunteers - 1 : 0; const matchedNames = firstName && otherVolunteersCount ? `${firstName} +${otherVolunteersCount}` : firstName; - const profileUrl = id ? `/${i18n.language}/dashboard/opportunities/${id}` : ""; + const params = volunteerId ? `?volunteer=${volunteerId}` : ""; + const profileUrl = id ? `/${i18n.language}/dashboard/opportunities/${id}${params}` : ""; return (