    ])
 
 (defn- menu-item-stacked-component
-  [& {:keys [project-id title item-id base icon]}]
+  [& {:keys [project-id route title item-id base icon]}]
   [:li.menu-item.clearfix
-   {:id (str "item-" item-id)}
+   {:id (str "item-" item-id)
+    :on-click #(goto route)}
    [:h5
     [:span.fa-stack.fa-lg.fa-fw
      [:i

(ns ui.menu
  (:use [jayq.core :only [$]])
  (:require [reagent.core :as reagent :refer [atom]]
            [gtd.state :as state]
            [utils.core :as utils]))

(defn- completion-bar
  [done total]

       (str ratio "% complete")]]]))

(defn- menu-item-component
  [& {:keys [project-id route title item-id icon]}]
  (if icon
    [:li
     {:id (str "item-" item-id)
      :class (if (= project-id item-id)
               "menu-item clearfix selected"
               "menu-item clearfix")
      :on-click #(goto route)}
     [:h5
      [:i
       {:class (str "fa fa-fw fa-lg fa-" icon)}]
