mirror of
https://github.com/penpot/penpot.git
synced 2025-05-22 00:26:12 +02:00
Remove commented code on util/forms.cljs file.
This commit is contained in:
parent
6f1c461e2e
commit
bedd1def21
1 changed files with 1 additions and 25 deletions
|
@ -152,30 +152,6 @@
|
|||
[store type field value]
|
||||
(ptk/emit! store (set-value type field value)))
|
||||
|
||||
;; --- Validate Form
|
||||
|
||||
;; (defrecord ValidateForm [type form data on-success]
|
||||
;; ptk/WatchEvent
|
||||
;; (watch [_ state stream]
|
||||
;; (let [[errors data] (validate data form)]
|
||||
;; (if errors
|
||||
;; (rx/of (set-errors type errors))
|
||||
;; (do
|
||||
;; (on-success data)
|
||||
;; (rx/empty))))))
|
||||
|
||||
;; (defn validate-form
|
||||
;; [& {:keys [type form data on-success]}]
|
||||
;; {:pre [(keyword? type)
|
||||
;; (map? form)
|
||||
;; (map? data)
|
||||
;; (fn? on-success)]}
|
||||
;; (ValidateForm. type form data on-success))
|
||||
|
||||
;; (defn validate-form!
|
||||
;; [& args]
|
||||
;; (f/emit! (apply validate-form args)))
|
||||
|
||||
;; --- Clear Form
|
||||
|
||||
(defrecord ClearForm [type]
|
||||
|
@ -192,7 +168,7 @@
|
|||
[store type]
|
||||
(ptk/emit! store (clear-form type)))
|
||||
|
||||
;; --- Clear Form
|
||||
;; --- Clear Errors
|
||||
|
||||
(defrecord ClearErrors [type]
|
||||
ptk/UpdateEvent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue