continuing to refactor form.

This commit is contained in:
Bryce Covert
2019-04-26 14:14:13 -07:00
parent 058d8b95bd
commit 5d5db63ed6
4 changed files with 84 additions and 66 deletions

View File

@@ -13,9 +13,8 @@
(not (get-in accounts [0 :account :id]))))
(defn default-account [accounts default-account amount locations]
[{:id (doto (get-in accounts [0 :id]
(str "new-" (random-uuid)))
println)
[{:id (get-in accounts [0 :id]
(str "new-" (random-uuid)))
:amount (Math/abs amount)
:amount-percentage 100
:amount-mode "%"
@@ -137,7 +136,7 @@
[:div.column.is-narrow
(when-not disabled
[:a.delete {:on-click (dispatch-event [::remove-expense-account event expense-accounts id])}])]]
(println "TYPAHEAD" expense-accounts)
[:div.field
[:div.columns
[:div.column