Changed from True/False to Yes/No

main
Tom Peltonen 2026-10-24 11:15:43 +11:00
parent ca81ec7524
commit 8e69567e6b
1 changed files with 3 additions and 3 deletions

View File

@ -35,15 +35,15 @@ export function QuestionField({ question, value, onChange }: QuestionFieldProps)
control = ( control = (
<div id={id} className="flex gap-6 pt-1" role="checkboxgroup" aria-label={question.label}> <div id={id} className="flex gap-6 pt-1" role="checkboxgroup" aria-label={question.label}>
{[ {[
{ label: 'True', checked: value === true }, { label: 'Yes', checked: value === true },
{ label: 'False', checked: value === false }, { label: 'No', checked: value === false },
].map((option) => ( ].map((option) => (
<label key={option.label} className="flex items-center gap-2 text-sm"> <label key={option.label} className="flex items-center gap-2 text-sm">
<input <input
type="checkbox" type="checkbox"
name={`checkbox-${question.id}`} name={`checkbox-${question.id}`}
checked={option.checked} checked={option.checked}
onChange={() => onChange(option.label === 'True')} onChange={() => onChange(option.label === 'Yes')}
className="h-4 w-4 accent-brand-600" className="h-4 w-4 accent-brand-600"
/> />
{option.label} {option.label}