enhance: use radix checkbox globally

This commit is contained in:
Tienson Qin
2024-03-11 21:40:32 +08:00
parent 83e4560a1a
commit d119a15229
10 changed files with 36 additions and 34 deletions

View File

@@ -23,11 +23,9 @@
(:value result)) result)
selected-choices (rum/react *selected-choices)]
[:div.flex.flex-row.justify-between.w-full {:class (when chosen? "chosen")}
[:span
[:div.flex.flex-row.items-center.gap-1
(when multiple-choices?
(ui/checkbox {:checked (boolean (selected-choices (:value result)))
:style {:margin-right 4}
:readOnly true
:on-click (fn [e]
(.preventDefault e))}))
value]