diff --git a/web/src/features/election-event/components/ElectionEventDetails/ElectionEventDetails.tsx b/web/src/features/election-event/components/ElectionEventDetails/ElectionEventDetails.tsx index 8bd464553..2933cb1ab 100644 --- a/web/src/features/election-event/components/ElectionEventDetails/ElectionEventDetails.tsx +++ b/web/src/features/election-event/components/ElectionEventDetails/ElectionEventDetails.tsx @@ -3,35 +3,33 @@ import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { Separator } from '@/components/ui/separator'; import { cn } from '@/lib/utils'; -import { useElectionRoundDetails } from '../../hooks/election-event-hooks'; import { useCurrentElectionRoundStore } from '@/context/election-round.store'; import { useTranslation } from 'react-i18next'; +import { useElectionRoundDetails } from '../../hooks/election-event-hooks'; export default function ElectionEventDetails() { const { t } = useTranslation(); - const currentElectionRoundId = useCurrentElectionRoundStore(s => s.currentElectionRoundId); + const currentElectionRoundId = useCurrentElectionRoundStore((s) => s.currentElectionRoundId); const { data: electionEvent } = useElectionRoundDetails(currentElectionRoundId); return (
- {t('electionEvent.eventDetails.cardTitle')} + + {t('electionEvent.eventDetails.cardTitle')} +

{t('electionEvent.eventDetails.title')}

-

- {electionEvent?.title} -

+

{electionEvent?.title}

{t('electionEvent.eventDetails.englishTitle')}

-

- {electionEvent?.englishTitle} -

+

{electionEvent?.englishTitle}

{t('electionEvent.eventDetails.country')}

@@ -48,7 +46,7 @@ export default function ElectionEventDetails() { className={cn({ 'text-slate-700 bg-slate-200': electionEvent?.status === 'NotStarted', 'text-green-700 bg-green-200': electionEvent?.status === 'Started', - 'text-yellow-700 bg-yellow-200': electionEvent?.status === 'Archived' + 'text-yellow-700 bg-yellow-200': electionEvent?.status === 'Archived', })}> {electionEvent?.status} diff --git a/web/src/features/election-event/components/Guides/GuidesDashboard.tsx b/web/src/features/election-event/components/Guides/GuidesDashboard.tsx index 1d485a9c2..bca4a45b1 100644 --- a/web/src/features/election-event/components/Guides/GuidesDashboard.tsx +++ b/web/src/features/election-event/components/Guides/GuidesDashboard.tsx @@ -215,8 +215,8 @@ export default function GuidesDashboard({ guidePageType }: GuidesDashboardProps) return ( -
- +
+ {guidePageType === GuidePageType.Observer ? i18n.t('electionEvent.guides.observerGuidesCardTitle') : i18n.t('electionEvent.guides.citizenGuidesCardTitle')} diff --git a/web/src/features/forms/components/Dashboard/Dashboard.tsx b/web/src/features/forms/components/Dashboard/Dashboard.tsx index bd9d661b5..9a0386a67 100644 --- a/web/src/features/forms/components/Dashboard/Dashboard.tsx +++ b/web/src/features/forms/components/Dashboard/Dashboard.tsx @@ -26,7 +26,13 @@ import i18n from '@/i18n'; import { cn, isNotNilOrWhitespace, mapFormType } from '@/lib/utils'; import { queryClient } from '@/main'; import { FormsSearchParams, Route } from '@/routes/election-event/$tab'; -import { ChevronDownIcon, ChevronUpIcon, EllipsisVerticalIcon, FunnelIcon, PhotoIcon } from '@heroicons/react/24/outline'; +import { + ChevronDownIcon, + ChevronUpIcon, + EllipsisVerticalIcon, + FunnelIcon, + PhotoIcon, +} from '@heroicons/react/24/outline'; import { useMutation } from '@tanstack/react-query'; import { useNavigate } from '@tanstack/react-router'; import { ColumnDef, createColumnHelper, Row } from '@tanstack/react-table'; @@ -317,18 +323,17 @@ export default function FormsDashboard(): ReactElement { row.depth === 0 ? ( isNotNilOrWhitespace(row.original.icon) ? ( - - - - - - - -
- -
-
-
+ + + + + + + +
+
+
+ ) : ( <> ) @@ -506,8 +511,10 @@ export default function FormsDashboard(): ReactElement { return ( - -
{i18n.t('electionEvent.observerForms.cardTitle')}
+ +
+ {i18n.t('electionEvent.observerForms.cardTitle')} +
diff --git a/web/src/features/monitoring-observers/components/MonitoringObserversList/MonitoringObserversList.tsx b/web/src/features/monitoring-observers/components/MonitoringObserversList/MonitoringObserversList.tsx index c1a498074..1a00ae0db 100644 --- a/web/src/features/monitoring-observers/components/MonitoringObserversList/MonitoringObserversList.tsx +++ b/web/src/features/monitoring-observers/components/MonitoringObserversList/MonitoringObserversList.tsx @@ -251,8 +251,10 @@ function MonitoringObserversList() { return ( -
- Monitoring observers list +
+ + Monitoring observers list +
{!!importErrorsFileId && ( -
- Push messages +
+ Push messages