diff --git a/public/locales/de/translations.json b/public/locales/de/translations.json index b0d54b76..1c313381 100644 --- a/public/locales/de/translations.json +++ b/public/locales/de/translations.json @@ -753,15 +753,16 @@ "opp-new": "Neu", "opp-searching": "Suche läuft", "opp-active": "Aktiv", + "opp-inactive": "Inaktiv", "opp-past": "Vergangen" }, "matchStatus": { - "vol-no-matches": "Keine Zuweisungen", - "vol-pending-match": "Zuordnung ausstehend", - "vol-matched": "Zugeordnet", - "vol-needs-rematch": "Erneute Zuordnung erforderlich", - "vol-unmatched": "Nicht zugeordnet", - "vol-past": "Vergangen" + "opp-vol-no-matches": "Keine Zuweisungen", + "opp-vol-pending-match": "Zuordnung ausstehend", + "opp-vol-matched": "Zugeordnet", + "opp-vol-needs-rematch": "Erneute Zuordnung erforderlich", + "opp-vol-unmatched": "Nicht zugeordnet", + "opp-vol-past": "Vergangen" }, "type": { "accompanying": "Begleitung", diff --git a/public/locales/en/translations.json b/public/locales/en/translations.json index 631abc7f..81f9fbde 100644 --- a/public/locales/en/translations.json +++ b/public/locales/en/translations.json @@ -796,15 +796,16 @@ "opp-new": "New", "opp-searching": "Searching", "opp-active": "Active", + "opp-inactive": "Inactive", "opp-past": "Past" }, "matchStatus": { - "vol-no-matches": "No matches", - "vol-pending-match": "Pending match", - "vol-matched": "Matched", - "vol-needs-rematch": "Needs rematch", - "vol-unmatched": "Unmatched", - "vol-past": "Past" + "opp-vol-no-matches": "No matches", + "opp-vol-pending-match": "Pending match", + "opp-vol-matched": "Matched", + "opp-vol-needs-rematch": "Needs rematch", + "opp-vol-unmatched": "Unmatched", + "opp-vol-past": "Past" }, "type": { "accompanying": "Accompanying", diff --git a/src/components/Dashboard/Opportunities/OpportunityCard.helpers.tsx b/src/components/Dashboard/Opportunities/OpportunityCard.helpers.tsx index a2aeb10a..06590d7b 100644 --- a/src/components/Dashboard/Opportunities/OpportunityCard.helpers.tsx +++ b/src/components/Dashboard/Opportunities/OpportunityCard.helpers.tsx @@ -10,7 +10,7 @@ import { TranslateIcon, } from "@phosphor-icons/react"; import { format } from "date-fns"; -import { ApiVolunteerOpportunityGetList, OpportunityStatusType, ProfileVolunteeringType } from "need4deed-sdk"; +import { ApiVolunteerOpportunityGetList, OpportunityMatchStatusType, OpportunityStatusType, ProfileVolunteeringType } from "need4deed-sdk"; import { utcHhmmToLocal } from "@/utils"; import { JSX } from "react"; @@ -54,23 +54,22 @@ export const statusIconMap: Record = { [OpportunityStatusType.PAST]: , }; -// TODO: replace string with OpportunityMatchStatusType once SDK PR #89 is merged -export const matchStatusColorMap: Record = { - "vol-no-matches": "var(--color-grey-700)", - "vol-pending-match": "var(--color-orange-500)", - "vol-matched": "var(--color-green-700)", - "vol-needs-rematch": "var(--color-red-50)", - "vol-unmatched": "var(--color-grey-700)", - "vol-past": "var(--color-grey-700)", +export const matchStatusColorMap: Record = { + "opp-vol-no-matches": "var(--color-grey-700)", + "opp-vol-pending-match": "var(--color-orange-500)", + "opp-vol-matched": "var(--color-green-700)", + "opp-vol-needs-rematch": "var(--color-red-50)", + "opp-vol-unmatched": "var(--color-grey-700)", + "opp-vol-past": "var(--color-grey-700)", }; -export const matchStatusIconMap: Record = { - "vol-no-matches": , - "vol-pending-match": , - "vol-matched": , - "vol-needs-rematch": , - "vol-unmatched": , - "vol-past": , +export const matchStatusIconMap: Record = { + "opp-vol-no-matches": , + "opp-vol-pending-match": , + "opp-vol-matched": , + "opp-vol-needs-rematch": , + "opp-vol-unmatched": , + "opp-vol-past": , }; export const volunteerTypeIconMap: Record = {