 (defn tea-adder
   "A component for the tea-adder form"
   []
-  (fn [] 
+  (fn []
     [:div.row
      [:div.col-md-12
       [:form {:post "/api/newtea"}


(defn sync-atom-to-event
  [atom target-value]
    (reset! atom (->
                  target-value
                  .-target
                  .-value)))

(def sync-new-tea (partial sync-atom-to-event new-tea))
(def sync-edit-tea (partial sync-atom-to-event edit-tea))

;; must be called after routes have been defined
(defn hook-browser-navigation! []
  (doto (History.)
    (events/listen
      EventType/NAVIGATE
      (fn [event]
        (secretary/dispatch! (.-token event))))
    (.setEnabled true)))

;; -------------------------
;; Initialize app
