made client form great

This commit is contained in:
2022-07-21 06:04:09 -07:00
parent 899efe0efa
commit 746787df79
5 changed files with 119 additions and 153 deletions

View File

@@ -13,6 +13,7 @@
(let [prop-value (if (seq prop-value)
prop-value
[])]
(println "PROP VALUE IS")
[form-builder/virtual-builder {:value prop-value
:schema schema
:on-change on-change}
@@ -60,7 +61,7 @@
[:button.button.is-outline
{:type "button"
:on-click (fn [e]
(on-change (conj prop-value {::key next-key}))
(on-change (conj prop-value {::key (random-uuid)}))
(.stopPropagation e)
(.preventDefault e))}
[:span.icon [:i.fa.fa-plus]]