From acfc8a0883ef0c8076d9d8487df447242ce74452 Mon Sep 17 00:00:00 2001 From: Nithish Kumar Siliveru Date: Wed, 6 Nov 2024 20:21:02 +0530 Subject: [PATCH] Added No records found in ABDM and button placement adjusted in Investigation Reports Page (#8999) --- public/locale/en.json | 2 +- src/components/ABDM/ABDMFacilityRecords.tsx | 7 +++++++ src/components/Facility/Investigations/Reports/index.tsx | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/public/locale/en.json b/public/locale/en.json index 9a7f4d750c2..b6ccb84de08 100644 --- a/public/locale/en.json +++ b/public/locale/en.json @@ -873,7 +873,7 @@ "no_policy_added": "No Insurance Policy Added", "no_policy_found": "No Insurance Policy Found for this Patient", "no_presets": "No Presets", - "no_records_found": "No records found", + "no_records_found": "No Records Found", "no_remarks": "No remarks", "no_results_found": "No Results Found", "no_staff": "No staff found", diff --git a/src/components/ABDM/ABDMFacilityRecords.tsx b/src/components/ABDM/ABDMFacilityRecords.tsx index 50fcbeb863a..ef3a1da8ab4 100644 --- a/src/components/ABDM/ABDMFacilityRecords.tsx +++ b/src/components/ABDM/ABDMFacilityRecords.tsx @@ -187,6 +187,13 @@ export default function ABDMFacilityRecords({ facilityId }: IProps) { + {consentsResult?.results.length === 0 && ( +
+

+ {t("no_records_found")} +

+
+ )} diff --git a/src/components/Facility/Investigations/Reports/index.tsx b/src/components/Facility/Investigations/Reports/index.tsx index 15273294325..7cfd21f3ff6 100644 --- a/src/components/Facility/Investigations/Reports/index.tsx +++ b/src/components/Facility/Investigations/Reports/index.tsx @@ -382,6 +382,7 @@ const InvestigationReports = ({ id }: any) => { handleSessionPage("PREV")} disabled={nextSessionDisabled} + className="ml-3" > {isLoading.tableData ? "Loading..." : t("prev_sessions")}