improvement: QRcode and shared link added to cases inorder to make it possible for staff users to share a case info with other staffs or other clinics.

This commit is contained in:
2026-07-14 21:07:05 +03:30
parent 953e609fb8
commit 08df2f71ea
41 changed files with 1535 additions and 83 deletions

View File

@@ -33,6 +33,7 @@ interface TaskRowProps {
statusOptions: { value: LabTaskStatus; label: string }[];
updatingTaskId: string | null;
commentsOpen: boolean;
showCommentsButton?: boolean;
prosthesisCatalog: readonly ProsthesisCatalogEntry[];
onStatusUpdate: (taskId: string, status: LabTaskStatus) => void;
onToggleComments: (taskId: string) => void;
@@ -55,6 +56,7 @@ export function TaskRow({
statusOptions,
updatingTaskId,
commentsOpen,
showCommentsButton = true,
prosthesisCatalog,
onStatusUpdate,
onToggleComments,
@@ -78,7 +80,7 @@ export function TaskRow({
.join(' ');
const commentsButton =
canEdit && !exiting ? (
showCommentsButton && canEdit && !exiting ? (
<button
type="button"
onClick={() => onToggleComments(task.id)}