0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-18 18:51:29 -05:00

Remove useless namespacing for persist auth data in storage.

The storage is already namespaced.
This commit is contained in:
Andrey Antukh 2016-11-13 12:56:13 +01:00
parent 6273b05c51
commit 29e6ebdb83
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95
3 changed files with 4 additions and 4 deletions

View file

@ -28,7 +28,7 @@
rs/WatchEvent
(-apply-watch [this state s]
(swap! storage assoc :uxbox/auth data)
(swap! storage assoc :auth data)
(rx/of (udu/fetch-profile)
(rt/navigate :dashboard/projects))))
@ -67,7 +67,7 @@
(defrecord Logout []
rs/UpdateEvent
(-apply-update [_ state]
(swap! storage dissoc :uxbox/auth)
(swap! storage dissoc :auth)
(merge state (dissoc (st/initial-state) :route)))
rs/WatchEvent

View file

@ -30,7 +30,7 @@
(defn- auth-headers
[]
(when-let [auth (:uxbox/auth storage)]
(when-let [auth (:auth storage)]
{"authorization" (str "Token " (:token auth "no-token"))}))
(defn- encode-query

View file

@ -28,7 +28,7 @@
:images-order :name
:images-filter ""}
:route nil
:auth (:uxbox/auth storage nil)
:auth (:auth storage nil)
:clipboard #queue []
:undo {}
:profile nil