mirror of
https://github.com/penpot/penpot.git
synced 2026-04-26 11:48:28 +00:00
Move router lense decaration to uxbox.ui ns.
This commit is contained in:
parent
e0ba0fd41f
commit
6eb65bfe39
@ -10,17 +10,12 @@
|
||||
[bidi.bidi :as bidi]
|
||||
[goog.events :as events]
|
||||
[lentes.core :as l]
|
||||
[uxbox.state :as s]
|
||||
[uxbox.rstore :as rs]))
|
||||
|
||||
(enable-console-print!)
|
||||
|
||||
(defonce +router+ (volatile! nil))
|
||||
|
||||
(def route-l
|
||||
(as-> (l/in [:route]) $
|
||||
(l/focus-atom $ s/state)))
|
||||
|
||||
;; --- Update Location (Event)
|
||||
|
||||
(defrecord UpdateLocation [id params]
|
||||
|
||||
@ -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)]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user