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

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

Merged
Show file tree
Hide file tree
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
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^5.0.0",
"glob": "^11.0.0",
"husky": "^9.1.6",
"husky": "^9.1.7",
rithviknishad marked this conversation as resolved.
Show resolved Hide resolved
"jsdom": "^25.0.1",
"lint-staged": "^15.2.10",
"local-cypress": "^1.2.6",
Expand Down
13 changes: 5 additions & 8 deletions src/components/Shifting/ShiftDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -483,25 +483,22 @@
}}
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"}

Check failure on line 495 in src/components/Shifting/ShiftDetails.tsx

View workflow job for this annotation

GitHub Actions / lint

Replace `data?.status·===·"COMPLETED"·||·data?.status·===·"CANCELLED"` with `⏎··················data?.status·===·"COMPLETED"·||·data?.status·===·"CANCELLED"⏎················`
onClick={() => navigate(`/shifting/${data?.external_id}/update`)}

Check failure on line 496 in src/components/Shifting/ShiftDetails.tsx

View workflow job for this annotation

GitHub Actions / lint

Replace `·navigate(`/shifting/${data?.external_id}/update`)` with `⏎··················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)}>

Check failure on line 501 in src/components/Shifting/ShiftDetails.tsx

View workflow job for this annotation

GitHub Actions / lint

Replace `·className="w-full·sm:w-auto"·onClick={()·=>·setIsPrintMode(true)}` with `⏎················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
Loading