Skip to content

Commit

Permalink
Fix Rendering Issue for sign-in-only
Browse files Browse the repository at this point in the history
After Login Component, wasn't renderd, due to lazyseq
reagent-project/reagent#18
  • Loading branch information
x1n4u committed Jun 3, 2016
1 parent 46bdf97 commit 50b3227
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/src/app/client.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -242,12 +242,13 @@
:role "button"}]
[:span#menu
[:ul
(keep (fn [[href content & {:keys [sign-in-only] :or {sign-in-only true}}]]
(if (or (not sign-in-only) (domain/user-sign-in-state @domain/app-state))
^{:key href} [:li [:a {:href href} content]]))
[["/#" "Home" :sign-in-only false]
["/#locations" "Locations"]
["/logout" [:i.icon-off.medium-icon]]])]]]
(doall
(keep (fn [[href content & {:keys [sign-in-only] :or {sign-in-only true}}]]
(if (or (not sign-in-only) (domain/user-sign-in-state @domain/app-state))
^{:key href} [:li [:a {:href href} content]]))
[["/#" "Home" :sign-in-only false]
["/#locations" "Locations"]
["/logout" [:i.icon-off.medium-icon]]]))]]]
[:div {:style {:text-align "center"}}
[sign-in-component]]])

Expand All @@ -261,7 +262,6 @@
(defn on-js-reload []
;; optionally touch your app-state to force rerendering depending on
;; your application
;; (swap! app-state update-in [:__figwheel_counter] inc)

)

0 comments on commit 50b3227

Please sign in to comment.