 						[clojure.string :as string]
 						[reagent.core :as r]))
 
-(defn nav-bar [seasons]
+(defn nav-bar []
 	[ui/view {:style {:flex             3
 										:flex-direction   "row"
 										:align-items      "center"

		[ui/text {:style {:color     "white"
											:font-size 30}}
		 (string/upper-case
			 (str "season " (:title (first (filter #(:active? %) seasons)))))]]
	 [ui/view {:style {:flex        1
										 :align-items "center"}}
		[ui/text {:style {:color "white"}} "S"]]])

			[ui/view {:style {:flex           1
												:flex-direction "column"
												:align-items    "stretch"}}
			 [nav-bar]
			 [seasons-bar @chapters #(swap! chapters (fn [a]
																							 (->> a
																										(map-indexed (fn [index i] (assoc i :active? (= index %)))))))]
			 [ui/scroll-view {:style {:flex 12}}]])))
