From a4814289333aa25fd2824f5e19dc305d99a60e99 Mon Sep 17 00:00:00 2001 From: Gigin George Date: Wed, 8 Jan 2025 12:24:55 +0530 Subject: [PATCH] AllergyList: Add i18n; map key --- src/components/Patient/allergy/list.tsx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/components/Patient/allergy/list.tsx b/src/components/Patient/allergy/list.tsx index 284b7885a70..456f61c759e 100644 --- a/src/components/Patient/allergy/list.tsx +++ b/src/components/Patient/allergy/list.tsx @@ -1,4 +1,5 @@ import { useQuery } from "@tanstack/react-query"; +import { t } from "i18next"; import { Badge } from "@/components/ui/badge"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; @@ -85,22 +86,22 @@ export function AllergyList({ patientId, encounterId }: AllergyListProps) { return ( - Allergies + {t("allergies")} - Allergen - Category - Status - Criticality - Created By + {t("allergen")} + {t("category")} + {t("status")} + {t("criticality")} + {t("created_by")} {allergies.results.map((allergy: AllergyIntolerance) => ( - + {allergy.code.display}