mirror of
https://github.com/penpot/penpot.git
synced 2025-05-11 01:56:37 +02:00
💄 Cosmetic changes on auth data events.
This commit is contained in:
parent
5bad64a497
commit
b7d4908e90
1 changed files with 1 additions and 5 deletions
|
@ -38,10 +38,6 @@
|
||||||
(rx/of du/fetch-profile
|
(rx/of du/fetch-profile
|
||||||
(rt/navigate :dashboard-projects)))))
|
(rt/navigate :dashboard-projects)))))
|
||||||
|
|
||||||
(defn logged-in?
|
|
||||||
[v]
|
|
||||||
(= (ptk/type v) ::logged-in))
|
|
||||||
|
|
||||||
;; --- Login
|
;; --- Login
|
||||||
|
|
||||||
(s/def ::login-params
|
(s/def ::login-params
|
||||||
|
@ -50,7 +46,7 @@
|
||||||
(defn login
|
(defn login
|
||||||
[{:keys [username password] :as data}]
|
[{:keys [username password] :as data}]
|
||||||
(s/assert ::login-params data)
|
(s/assert ::login-params data)
|
||||||
(reify
|
(ptk/reify ::login
|
||||||
ptk/UpdateEvent
|
ptk/UpdateEvent
|
||||||
(update [_ state]
|
(update [_ state]
|
||||||
(merge state (dissoc initial-state :route :router)))
|
(merge state (dissoc initial-state :route :router)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue