Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample Test Details: Fix Padding and enclose status and result with i18n #9387

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading