Skip to content

Commit

Permalink
fix: restore previous checkbox version (#372)
Browse files Browse the repository at this point in the history
fix: restoring the old checkbox
  • Loading branch information
mateuszszczecina authored Jan 14, 2025
1 parent 5fa1094 commit aa3bcf0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,8 @@ const AnswerSelectQuestion = ({ form, questionIndex }: AnswerSelectQuestionProps
<Checkbox
id="isCorrect"
name={`questions.${questionIndex}.options.${index}.isCorrect`}
className="w-4 h-4 mt-1"
checked={item.isCorrect}
isSquareCheck
className="mb-2 mt-2"
onCheckedChange={() =>
handleOptionChange(index, "isCorrect", !item.isCorrect)
}
Expand All @@ -152,7 +151,7 @@ const AnswerSelectQuestion = ({ form, questionIndex }: AnswerSelectQuestionProps
)}
<Label
onClick={() => handleOptionChange(index, "isCorrect", !item.isCorrect)}
className="ml-2 body-sm text-neutral-950 cursor-pointer"
className="ml-2 body-sm align-middle text-neutral-950 cursor-pointer"
>
{t("adminCourseView.curriculum.lesson.other.correct")}
</Label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,8 @@ const PhotoQuestion = ({ form, questionIndex, lessonToEdit }: PhotoQuestionProps
<Checkbox
id="isCorrect"
name={`questions.${questionIndex}.options.${index}.isCorrect`}
className="w-4 h-4 mt-1"
className="mb-2 mt-2"
checked={item.isCorrect}
isSquareCheck
onCheckedChange={() =>
handleOptionChange(index, "isCorrect", !item.isCorrect)
}
Expand All @@ -276,7 +275,7 @@ const PhotoQuestion = ({ form, questionIndex, lessonToEdit }: PhotoQuestionProps

<Label
onClick={() => handleOptionChange(index, "isCorrect", !item.isCorrect)}
className="ml-2 body-sm text-neutral-950 cursor-pointer"
className="ml-2 align-middle body-sm text-neutral-950 cursor-pointer"
>
{t("adminCourseView.curriculum.lesson.other.correct")}
</Label>
Expand Down

0 comments on commit aa3bcf0

Please sign in to comment.