Skip to content

phone size responsive issue shifting details page #8831 Open #9256

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

Merged
merged 2 commits into from
Nov 30, 2024
Merged
Changes from 1 commit
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
16 changes: 5 additions & 11 deletions src/components/Shifting/ShiftDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -478,30 +478,24 @@ export default function ShiftDetails(props: { id: string }) {
) : (
<Page
title={t("shifting_details")}
crumbsReplacements={{
[props.id]: { name: data?.patient_object?.name },
}}
backUrl="/shifting/board"
options={
<div className="flex gap-2">
<div className="flex flex-wrap gap-2 mt-4">
<ButtonV2
className="w-full sm:w-auto"
tooltip={
["COMPLETED", "CANCELLED"].includes(data?.status || "")
? `A shifting request, once ${data?.status.toLowerCase()} cannot be updated`
: ""
}
tooltipClassName="tooltip-top -translate-x-28 -translate-y-1 text-xs"
disabled={
data?.status === "COMPLETED" || data?.status === "CANCELLED"
}
onClick={() =>
navigate(`/shifting/${data?.external_id}/update`)
}
disabled={data?.status === "COMPLETED" || data?.status === "CANCELLED"}
onClick={() => navigate(`/shifting/${data?.external_id}/update`)}
>
{t("update_status_details")}
</ButtonV2>

<ButtonV2 onClick={() => setIsPrintMode(true)}>
<ButtonV2 className="w-full sm:w-auto" onClick={() => setIsPrintMode(true)}>
<CareIcon icon="l-file-alt" className="mr-2 text-base" />{" "}
{t("referral_letter")}
</ButtonV2>
Expand Down