diff --git a/src/modules/registratura/components/close-guard-dialog.tsx b/src/modules/registratura/components/close-guard-dialog.tsx index 7a90bf3..4d142b0 100644 --- a/src/modules/registratura/components/close-guard-dialog.tsx +++ b/src/modules/registratura/components/close-guard-dialog.tsx @@ -82,9 +82,7 @@ export function CloseGuardDialog({ const selectedEntry = allEntries.find((e) => e.id === selectedEntryId); const canSubmit = - mode === "link" - ? selectedEntryId !== "" - : reason.trim().length >= 5; + mode === "link" ? selectedEntryId !== "" : reason.trim().length >= 5; const handleSubmit = () => { if (!canSubmit) return; @@ -124,19 +122,14 @@ export function CloseGuardDialog({ const def = getDeadlineType(dl.typeId); const isOverdue = new Date(dl.dueDate) < new Date(); return ( -
+
{isOverdue ? "Depășit" : "Activ"} - - {def?.label ?? dl.typeId} - + {def?.label ?? dl.typeId} scadent {dl.dueDate} diff --git a/src/modules/registratura/components/deadline-add-dialog.tsx b/src/modules/registratura/components/deadline-add-dialog.tsx index 2f51d41..33d1783 100644 --- a/src/modules/registratura/components/deadline-add-dialog.tsx +++ b/src/modules/registratura/components/deadline-add-dialog.tsx @@ -21,7 +21,7 @@ interface DeadlineAddDialogProps { type Step = 'category' | 'type' | 'date'; -const CATEGORIES: DeadlineCategory[] = ['avize', 'completari', 'analiza', 'autorizare', 'publicitate']; +const CATEGORIES: DeadlineCategory[] = ['certificat', 'avize', 'completari', 'analiza', 'autorizare', 'publicitate']; export function DeadlineAddDialog({ open, onOpenChange, entryDate, onAdd }: DeadlineAddDialogProps) { const [step, setStep] = useState('category');