Skip to content

Commit

Permalink
Sample Test Details: Fix Padding and enclose status and result with i…
Browse files Browse the repository at this point in the history
…18n (#9387)
  • Loading branch information
rithviknishad authored Dec 12, 2024
1 parent 1fb976b commit 8a3a59f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/Patient/SampleDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export const SampleDetails = ({ id }: DetailRoute) => {
const renderFlow = (flow: FlowModel) => {
return (
<Card key={flow.id}>
<div className="grid grid-cols-1 gap-4 md:grid-cols-2">
<div className="mr-3 p-4 text-black md:mr-8 grid grid-cols-1 gap-4 md:grid-cols-2">
<div>
<span className="font-semibold leading-relaxed">
{t("status")}:{" "}
Expand Down Expand Up @@ -323,16 +323,16 @@ export const SampleDetails = ({ id }: DetailRoute) => {
<div className="text-sm text-muted-foreground">
{t("status")}:{" "}
</div>
<Badge variant="outline" className="font-semibold">
{sampleDetails?.status}
<Badge variant="outline" className="font-semibold uppercase">
{t(`SAMPLE_TEST_HISTORY__${sampleDetails?.status}`)}
</Badge>
</div>
<div className="space-y-1 sm:text-right flex gap-2 items-center ">
<div className="text-sm text-muted-foreground">
{t("result")}:{" "}
</div>
<Badge variant="secondary" className="font-semibold">
{sampleDetails?.result}
<Badge variant="secondary" className="font-semibold uppercase">
{t(`SAMPLE_TEST_RESULT__${sampleDetails?.result}`)}
</Badge>
</div>
</div>
Expand Down Expand Up @@ -540,7 +540,7 @@ export const SampleDetails = ({ id }: DetailRoute) => {
<h4 className="mt-8">{t("sample_test_history")}</h4>
{sampleDetails?.flow &&
sampleDetails.flow.map((flow: FlowModel) => (
<div key={flow.id} className="mb-2">
<div key={flow.id} className="mb-2 py-2">
{renderFlow(flow)}
</div>
))}
Expand Down

0 comments on commit 8a3a59f

Please sign in to comment.