mirror of
https://github.com/penpot/penpot.git
synced 2025-05-12 10:36:38 +02:00
Add navigation to dashboard.
This commit is contained in:
parent
feb00d83f8
commit
61b05613f3
4 changed files with 44 additions and 20 deletions
|
@ -132,6 +132,17 @@
|
|||
(-pr-writer [mv writer _]
|
||||
(-write writer "#<event:u.s.p/initialize-workspace>"))))
|
||||
|
||||
(defn set-dashboard-section
|
||||
[section]
|
||||
(reify
|
||||
rs/UpdateEvent
|
||||
(-apply-update [_ state]
|
||||
(assoc-in state [:dashboard :section] section))
|
||||
|
||||
IPrintWithWriter
|
||||
(-pr-writer [mv writer _]
|
||||
(-write writer "#<event:u.s.p/go-to-project"))))
|
||||
|
||||
(defn go-to-project
|
||||
"A shortcut event that redirects the user to the
|
||||
first page of the project."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue