mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 23:49:45 -05:00
Add logout interaction to the user menu on header.
This commit is contained in:
parent
d6000b0f4a
commit
892b474e8b
1 changed files with 10 additions and 8 deletions
|
@ -3,8 +3,10 @@
|
||||||
[cats.labs.lens :as l]
|
[cats.labs.lens :as l]
|
||||||
[rum.core :as rum]
|
[rum.core :as rum]
|
||||||
[uxbox.router :as r]
|
[uxbox.router :as r]
|
||||||
|
[uxbox.rstore :as rs]
|
||||||
[uxbox.state :as s]
|
[uxbox.state :as s]
|
||||||
[uxbox.ui.icons :as icons]
|
[uxbox.data.auth :as da]
|
||||||
|
[uxbox.ui.icons :as i]
|
||||||
[uxbox.ui.navigation :as nav]
|
[uxbox.ui.navigation :as nav]
|
||||||
[uxbox.ui.mixins :as mx]))
|
[uxbox.ui.mixins :as mx]))
|
||||||
|
|
||||||
|
@ -18,20 +20,20 @@
|
||||||
[:ul.dropdown {:class (when-not open?
|
[:ul.dropdown {:class (when-not open?
|
||||||
"hide")}
|
"hide")}
|
||||||
[:li
|
[:li
|
||||||
icons/page
|
i/page
|
||||||
[:span "Page settings"]]
|
[:span "Page settings"]]
|
||||||
[:li
|
[:li
|
||||||
icons/grid
|
i/grid
|
||||||
[:span "Grid settings"]]
|
[:span "Grid settings"]]
|
||||||
[:li
|
[:li
|
||||||
icons/eye
|
i/eye
|
||||||
[:span "Preview"]]
|
[:span "Preview"]]
|
||||||
[:li
|
[:li
|
||||||
icons/user
|
i/user
|
||||||
[:span "Your account"]]
|
[:span "Your account"]]
|
||||||
[:li
|
[:li {:on-click #(rs/emit! (da/logout))}
|
||||||
icons/exit
|
i/exit
|
||||||
[:span "Save & Exit"]]]))
|
[:span "Exit"]]]))
|
||||||
|
|
||||||
(def user-menu
|
(def user-menu
|
||||||
(mx/component
|
(mx/component
|
||||||
|
|
Loading…
Add table
Reference in a new issue