removing placeholder.
This commit is contained in:
@@ -24,6 +24,13 @@
|
|||||||
(catch Exception e
|
(catch Exception e
|
||||||
nil)))
|
nil)))
|
||||||
|
|
||||||
|
(defn unparse-local [v format]
|
||||||
|
(try
|
||||||
|
|
||||||
|
(f/unparse (f/with-zone (f/formatter format) (time/time-zone-for-id "America/Los_Angeles")) v)
|
||||||
|
(catch Exception e
|
||||||
|
nil)))
|
||||||
|
|
||||||
|
|
||||||
(defn day-of-week-seq [day]
|
(defn day-of-week-seq [day]
|
||||||
(let [next-day (loop [d (local-now)]
|
(let [next-day (loop [d (local-now)]
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
[react]))
|
[react]))
|
||||||
|
|
||||||
(defn typeahead-v3-internal [{:keys [class style disabled entities entity->text entities-by-id entity-index on-change disabled value name auto-focus] :or {disabled false} :as i}]
|
(defn typeahead-v3-internal [{:keys [class style disabled entities entity->text entities-by-id entity-index on-change disabled value name auto-focus] :or {disabled false} :as i}]
|
||||||
|
(println "hello")
|
||||||
(let [[items set-items] (react/useState (map clj->js entities))
|
(let [[items set-items] (react/useState (map clj->js entities))
|
||||||
state-reducer (fn [state actions-and-changes]
|
state-reducer (fn [state actions-and-changes]
|
||||||
(cond
|
(cond
|
||||||
@@ -102,4 +103,6 @@
|
|||||||
(entity->text item)]))]]]]))
|
(entity->text item)]))]]]]))
|
||||||
|
|
||||||
(defn typeahead-v3 [{:keys [class disabled entities entity->text entities-by-id entity-index on-change value ] :as props}]
|
(defn typeahead-v3 [{:keys [class disabled entities entity->text entities-by-id entity-index on-change value ] :as props}]
|
||||||
[:f> typeahead-v3-internal props])
|
(println typeahead-v3-internal)
|
||||||
|
[:div
|
||||||
|
[:f> typeahead-v3-internal props]])
|
||||||
|
|||||||
@@ -308,12 +308,7 @@
|
|||||||
chart-options @(re-frame/subscribe [::chart-options])]
|
chart-options @(re-frame/subscribe [::chart-options])]
|
||||||
^{:key client-id}
|
^{:key client-id}
|
||||||
[side-bar-layout {:side-bar [:div
|
[side-bar-layout {:side-bar [:div
|
||||||
[:f> typeahead-v3 {:entities-by-id vendors-by-id
|
|
||||||
:entity-index vendors-index
|
|
||||||
:entity->text :name}]
|
|
||||||
[:f> typeahead-v3 {:entities-by-id accounts-by-id
|
|
||||||
:entity-index accounts-index
|
|
||||||
:entity->text :name}]
|
|
||||||
]
|
]
|
||||||
:main [:div [:h1.title "Home"]
|
:main [:div [:h1.title "Home"]
|
||||||
[:h1.title.is-4 "Top expense categories"]
|
[:h1.title.is-4 "Top expense categories"]
|
||||||
|
|||||||
Reference in New Issue
Block a user