Move router lense decaration to uxbox.ui ns.

This commit is contained in:
Andrey Antukh 2016-05-15 23:05:05 +03:00
parent e0ba0fd41f
commit 6eb65bfe39
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95
2 changed files with 5 additions and 6 deletions

View file

@ -30,11 +30,15 @@
(def ^:const +unrestricted+ #{:auth/login})
(def ^:const restricted? (complement +unrestricted+))
(def route-l
(as-> (l/key :route) $
(l/focus-atom $ st/state)))
;; --- Main App (Component)
(defn app-render
[own]
(let [route (rum/react r/route-l)
(let [route (rum/react route-l)
auth (rum/react st/auth-l)
location (:id route)
params (:params route)]