removing placeholder.

This commit is contained in:
2021-05-27 06:12:07 -07:00
parent bfbab1fa1f
commit 01d122a4d7
3 changed files with 12 additions and 7 deletions

View File

@@ -24,6 +24,13 @@
(catch Exception e
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]
(let [next-day (loop [d (local-now)]

View File

@@ -8,6 +8,7 @@
[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}]
(println "hello")
(let [[items set-items] (react/useState (map clj->js entities))
state-reducer (fn [state actions-and-changes]
(cond
@@ -102,4 +103,6 @@
(entity->text item)]))]]]]))
(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]])

View File

@@ -308,12 +308,7 @@
chart-options @(re-frame/subscribe [::chart-options])]
^{:key client-id}
[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"]
[:h1.title.is-4 "Top expense categories"]