From 8a3a59fdb0f453ee14b7236995106bca4091eb20 Mon Sep 17 00:00:00 2001 From: Rithvik Nishad Date: Thu, 12 Dec 2024 11:34:48 +0000 Subject: [PATCH] Sample Test Details: Fix Padding and enclose status and result with i18n (#9387) --- src/components/Patient/SampleDetails.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/Patient/SampleDetails.tsx b/src/components/Patient/SampleDetails.tsx index 6cede48bfa5..f0e5f0039e5 100644 --- a/src/components/Patient/SampleDetails.tsx +++ b/src/components/Patient/SampleDetails.tsx @@ -265,7 +265,7 @@ export const SampleDetails = ({ id }: DetailRoute) => { const renderFlow = (flow: FlowModel) => { return ( -
+
{t("status")}:{" "} @@ -323,16 +323,16 @@ export const SampleDetails = ({ id }: DetailRoute) => {
{t("status")}:{" "}
- - {sampleDetails?.status} + + {t(`SAMPLE_TEST_HISTORY__${sampleDetails?.status}`)}
{t("result")}:{" "}
- - {sampleDetails?.result} + + {t(`SAMPLE_TEST_RESULT__${sampleDetails?.result}`)}
@@ -540,7 +540,7 @@ export const SampleDetails = ({ id }: DetailRoute) => {

{t("sample_test_history")}

{sampleDetails?.flow && sampleDetails.flow.map((flow: FlowModel) => ( -
+
{renderFlow(flow)}
))}