From fb09052476bbff190caf2e664650665e2a1052ea Mon Sep 17 00:00:00 2001 From: Colin Dawson Date: Mon, 23 Feb 2026 22:59:15 +0000 Subject: [PATCH] OutcomeOfApprovalVerdict should now be working --- public/locales/uk/verdict.json | 1 + src/components/common/Input.tsx | 14 +- .../OutcomeOfApprovalVerdictRegistryEntry.tsx | 171 ++++++++++-------- .../components/taskEditorHelpers.tsx | 25 ++- 4 files changed, 127 insertions(+), 84 deletions(-) diff --git a/public/locales/uk/verdict.json b/public/locales/uk/verdict.json index 9d6e092..ec9e57a 100644 --- a/public/locales/uk/verdict.json +++ b/public/locales/uk/verdict.json @@ -1,6 +1,7 @@ { "Approved": "Схвалено", "ApprovedWithComments": "Схвалено з коментарями", + "None": "Ніхто.", "Pending": "У підготовці.", "Rejected": "Відхилено", "Reviewed": "Оглянуто." diff --git a/src/components/common/Input.tsx b/src/components/common/Input.tsx index d87b7e1..ed56eff 100644 --- a/src/components/common/Input.tsx +++ b/src/components/common/Input.tsx @@ -42,7 +42,7 @@ export interface InputProps { placeHolder?: string; readOnly?: boolean; type: InputType; - value?: string | number | readonly string[] | undefined; + value?: string | number | readonly string[] | boolean | undefined; defaultValue?: string | number | readonly string[] | undefined; min?: number; max?: number; @@ -56,6 +56,7 @@ export interface InputProps { ) => void; maxLength?: number; options?: { value: string; label: string }[]; + title: string; } function Input(props: InputProps) { @@ -74,6 +75,7 @@ function Input(props: InputProps) { autoComplete, onChange, options, + title, ...rest } = props; @@ -88,7 +90,7 @@ function Input(props: InputProps) { const [showPasswordIcon, setShowPasswordIcon] = useState(faEyeSlash); if (type === InputType.checkbox) { - checked = value === String(true); + checked = value === true || value === "true"; showValue = undefined; divClassName = "form-check allignedCheckBox"; className = "form-check-input"; @@ -154,7 +156,12 @@ function Input(props: InputProps) { return (