diff --git a/public/locales/bg/campaigns.json b/public/locales/bg/campaigns.json index 6dba84567..c70bf1848 100644 --- a/public/locales/bg/campaigns.json +++ b/public/locales/bg/campaigns.json @@ -151,7 +151,15 @@ "end-date": "Крайна дата:", "indefinite": "Безсрочна", "tag": "Таг:", - "date": "Дата:" + "date": "Дата:", + "chipsLabels": { + "news": "Новини", + "docs": "Документи", + "experts": "Експертен съвет", + "guarantor": "Гарант", + "signals": "Сигнали", + "others": "Други" + } }, "info-graphics": { "donation-title": "100% от дарението отива при нуждаещите се", diff --git a/public/locales/en/campaigns.json b/public/locales/en/campaigns.json index effe64cde..883cb0505 100644 --- a/public/locales/en/campaigns.json +++ b/public/locales/en/campaigns.json @@ -145,7 +145,15 @@ "start-date": "Start date:", "end-date": "End date:", "tag": "Tag:", - "date": "Date:" + "date": "Date:", + "chipsLabels": { + "news": "News", + "docs": "Documents", + "experts": "Experts", + "guarantor": "Guarantor", + "signals": "Signals", + "others": "Others" + } }, "info-graphics": { "donation-title": "100% of the donation goes to those in need", diff --git a/src/components/client/campaigns/CampaignDetails.tsx b/src/components/client/campaigns/CampaignDetails.tsx index 22b021357..2c5607a1d 100644 --- a/src/components/client/campaigns/CampaignDetails.tsx +++ b/src/components/client/campaigns/CampaignDetails.tsx @@ -96,8 +96,6 @@ type Props = { campaign: CampaignResponse } -const chipsLabel = { news: 'News', experts: 'Experts', expenses: 'Financial Expesnes' } - export default function CampaignDetails({ campaign }: Props) { const { t } = useTranslation() const sliderImages = campaignSliderUrls(campaign) @@ -105,6 +103,15 @@ export default function CampaignDetails({ campaign }: Props) { const { data: expensesList } = useCampaignApprovedExpensesList(campaign.slug) const totalExpenses = expensesList?.reduce((acc, expense) => acc + expense.amount, 0) + const chipsLabel = { + news: t('campaigns:campaign.chipsLabels.news'), + docs: t('campaigns:campaign.chipsLabels.docs'), + experts: t('campaigns:campaign.chipsLabels.experts'), + guarantor: t('campaigns:campaign.chipsLabels.guarantor'), + signals: t('campaigns:campaign.chipsLabels.signals'), + others: t('campaigns:campaign.chipsLabels.others'), + } + const scrollToSection = (sectionId: string) => { const target = document.getElementById(sectionId) if (target) {