From c1f5e80e76bf421b2210dbdb8e211bfce36653f8 Mon Sep 17 00:00:00 2001 From: 9sneha-n <9sneha.n@gmail.com> Date: Mon, 4 Nov 2024 00:59:22 +0530 Subject: [PATCH] feat: sort risk assessment table by date --- i18n/en.pot | 10 ++++- .../DiseaseOutbreakEventTestRepository.ts | 2 +- .../form-summary/EventTrackerFormSummary.tsx | 2 +- src/webapp/components/table/BasicTable.tsx | 43 ++++++++++++++++--- .../pages/event-tracker/EventTrackerPage.tsx | 15 +++++-- .../event-tracker/useDiseaseOutbreakEvent.ts | 38 +++++++++++++++- 6 files changed, 95 insertions(+), 15 deletions(-) diff --git a/i18n/en.pot b/i18n/en.pot index 4d53e015..392348f3 100644 --- a/i18n/en.pot +++ b/i18n/en.pot @@ -5,8 +5,8 @@ msgstr "" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" -"POT-Creation-Date: 2024-10-16T14:36:22.158Z\n" -"PO-Revision-Date: 2024-10-16T14:36:22.158Z\n" +"POT-Creation-Date: 2024-11-03T18:35:32.151Z\n" +"PO-Revision-Date: 2024-11-03T18:35:32.151Z\n" msgid "Low" msgstr "" @@ -87,9 +87,15 @@ msgstr "" msgid "Edit Action Plan" msgstr "" +msgid "Event completed" +msgstr "" + msgid "Edit Details" msgstr "" +msgid "Complete Event" +msgstr "" + msgid "Notes" msgstr "" diff --git a/src/data/repositories/test/DiseaseOutbreakEventTestRepository.ts b/src/data/repositories/test/DiseaseOutbreakEventTestRepository.ts index aab9ec8e..b7dc9d78 100644 --- a/src/data/repositories/test/DiseaseOutbreakEventTestRepository.ts +++ b/src/data/repositories/test/DiseaseOutbreakEventTestRepository.ts @@ -10,7 +10,7 @@ import { DiseaseOutbreakEventRepository } from "../../../domain/repositories/Dis import { FutureData } from "../../api-futures"; export class DiseaseOutbreakEventTestRepository implements DiseaseOutbreakEventRepository { - complete(id: Id): FutureData { + complete(_id: Id): FutureData { return Future.success(undefined); } get(id: Id): FutureData { diff --git a/src/webapp/components/form/form-summary/EventTrackerFormSummary.tsx b/src/webapp/components/form/form-summary/EventTrackerFormSummary.tsx index 09d51891..2b8f9a45 100644 --- a/src/webapp/components/form/form-summary/EventTrackerFormSummary.tsx +++ b/src/webapp/components/form/form-summary/EventTrackerFormSummary.tsx @@ -51,7 +51,7 @@ export const EventTrackerFormSummary: React.FC = R console.error(err); } ); - }, []); + }, [compositionRoot, id, snackbar]); const editButton = (