Revert "Revert "Enabling signature editing.""
This reverts commit b52f3231e8.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
(ns auto-ap.views.utils
|
||||
(:require [re-frame.core :as re-frame]
|
||||
[cljsjs.react-transition-group]
|
||||
[cljsjs.react-datepicker]
|
||||
[reagent.core :as reagent]
|
||||
[react-transition-group :as react-transition-group]
|
||||
[react-datepicker]
|
||||
[clojure.spec.alpha :as s]
|
||||
[cljs-time.coerce :as c]
|
||||
[cljs-time.core :as time]
|
||||
@@ -20,7 +20,7 @@
|
||||
(def nff
|
||||
(NumberFormat. Format/CURRENCY))
|
||||
|
||||
(defn- nf
|
||||
(defn nf
|
||||
[num]
|
||||
(.format nff (str num)))
|
||||
|
||||
@@ -60,9 +60,10 @@
|
||||
|
||||
(defn delayed-dispatch [e]
|
||||
(fn [x]
|
||||
(js/setTimeout #(re-frame/dispatch e) 150)
|
||||
(js/setTimeout #(re-frame/dispatch e) 151)
|
||||
false))
|
||||
|
||||
|
||||
(defn dispatch-event [event]
|
||||
(fn [e]
|
||||
(when (.-stopPropagation e)
|
||||
@@ -103,7 +104,7 @@
|
||||
|
||||
|
||||
(def css-transition-group
|
||||
(reagent/adapt-react-class js/ReactTransitionGroup.CSSTransition))
|
||||
(reagent/adapt-react-class react-transition-group/CSSTransition))
|
||||
|
||||
|
||||
(defn appearing [{:keys [visible? enter-class exit-class timeout]} & children ]
|
||||
@@ -410,8 +411,7 @@
|
||||
|
||||
(def date-picker
|
||||
(do
|
||||
(reagent/adapt-react-class (aget js/DatePicker "default"))))
|
||||
|
||||
(reagent/adapt-react-class (.-default react-datepicker))))
|
||||
|
||||
|
||||
(defn local-now []
|
||||
|
||||
Reference in New Issue
Block a user