mirror of
https://github.com/penpot/penpot.git
synced 2025-06-10 23:51:37 +02:00
Rename all "-l" suffix with "-ref" suffix.
That is more intiutive.
This commit is contained in:
parent
f20ce6f057
commit
d7f21dc130
42 changed files with 129 additions and 129 deletions
|
@ -42,7 +42,7 @@
|
|||
(def ^:const restricted?
|
||||
(complement +unrestricted+))
|
||||
|
||||
(def route-l
|
||||
(def route-ref
|
||||
(-> (l/key :route)
|
||||
(l/derive st/state)))
|
||||
|
||||
|
@ -77,8 +77,8 @@
|
|||
|
||||
(defn app-render
|
||||
[own]
|
||||
(let [route (mx/react route-l)
|
||||
auth (mx/react st/auth-l)
|
||||
(let [route (mx/react route-ref)
|
||||
auth (mx/react st/auth-ref)
|
||||
location (:id route)
|
||||
params (:params route)]
|
||||
(if (and (restricted? location) (not auth))
|
||||
|
@ -104,7 +104,7 @@
|
|||
|
||||
(defn app-will-mount
|
||||
[own]
|
||||
(when @st/auth-l
|
||||
(when @st/auth-ref
|
||||
(rs/emit! (udu/fetch-profile)))
|
||||
own)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue