Skip to content

Commit

Permalink
referall letter updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahendar0701 committed Dec 15, 2024
1 parent 0ec3124 commit 4b2deb0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/components/Shifting/ShiftDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ export default function ShiftDetails(props: { id: string }) {
)}
</div>
<button
className="w-full sm:w-auto underline text-green-600 flex items-center"
className="w-full sm:w-auto underline text-green-600 "
onClick={() => setIsPrintMode(true)}
>
<CareIcon icon="l-file-alt" className="mr-2 text-base" />
Expand All @@ -535,17 +535,17 @@ export default function ShiftDetails(props: { id: string }) {
</div>
</div>

<div className="mt-4 h-full rounded-lg border bg-white p-4 text-sm text-gray-600 shadow px-4 sm:px-6">
<div className="mt-4 h-full rounded-lg bg-white p-4 text-sm text-gray-600 shadow px-4 sm:px-6 md:px-8 lg:px-10">
<div className="flex flex-wrap justify-between mb-3">
<div className="w-full sm:w-auto">
<div className="w-full md:w-auto">
<span className="font-semibold text-lg leading-relaxed mr-2">
{t("patient_name")} :
</span>
<span className="text-gray-900 text-lg font-semibold leading-5">
{data?.patient_object?.name}
</span>
</div>
<div className="w-full sm:w-auto mt-2 sm:mt-0">
<div className="w-full md:w-auto mt-2 md:mt-0">
<Link
className="underline text-blue-700 font-semibold leading-5"
href={`/patient/${data?.patient_object?.id}`}
Expand All @@ -554,7 +554,7 @@ export default function ShiftDetails(props: { id: string }) {
</Link>
</div>
</div>
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4">
<div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4">
<div>
<span className="font-semibold leading-relaxed">
Status :{" "}
Expand Down Expand Up @@ -680,7 +680,7 @@ export default function ShiftDetails(props: { id: string }) {
"--"}
</span>
</div>
<div className="col-span-1 sm:col-span-4">
<div className="col-span-1 sm:col-span-2 md:col-span-4">
<span className="font-semibold leading-relaxed">
{t("reason")} :
</span>
Expand Down
5 changes: 3 additions & 2 deletions src/components/Shifting/ShiftingTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ export default function ShiftingTable(props: {
shift?.status === "COMPLETED" ||
shift?.status === "CANCELLED"
}
onClick={(_) =>
navigate(`/shifting/${shift.external_id}/update`)
onClick={() =>
navigate(`/shifting/${shift?.external_id}/update`)
}
>
{t("update_status_details")}
Expand Down Expand Up @@ -264,6 +264,7 @@ export default function ShiftingTable(props: {
)}
</DropdownMenuContent>
</DropdownMenu>

<ConfirmDialog
title={t("confirm_transfer_complete")}
description={t("mark_transfer_complete_confirmation")}
Expand Down

0 comments on commit 4b2deb0

Please sign in to comment.