   ;; go to the next step
   (swap! state assoc :new-project-step 3)))
 
-(defn- click-new-project-done-btn []
-  (swap! state assoc :new-project-modal-showing? false
-                     :new-project-name ""
-                     :new-project-dir ""
-                     :new-project-step 1))
-
 ;; TODO: need to handle input validation here
 (defn- on-change-new-project-name-input [js-evt]
   (let [new-name (aget js-evt "currentTarget" "value")]

    [:div.clr-737fa]])

(sablono/defhtml modal-overlay []
  [:div.modal-overlay-120d3 {:on-click close-modal}])

(sablono/defhtml new-project-step-1 []
  [:div.modal-body-fe4db
    [:div.modal-chunk-2041a
      [:button.big-btn-a5d18 {:on-click click-new-from-scratch-btn}
        "New Project"]
      [:p.small-info-b72e9
        "Create a new project from scratch."]]

  [filename]
  (let [dirname (.dirname path filename)]
    (open dirname)))

(defn- click-modal-overlay []
  ;; do not let them close the modal while a new project is being created
  (when-not (= 3 (:new-project-step @state))
    (close-add-project-modal)))

;;------------------------------------------------------------------------------
;; Sablono Templates
