mirror of
https://github.com/penpot/penpot.git
synced 2025-06-06 10:41:40 +02:00
Merge remote-tracking branch 'origin/staging' into develop
This commit is contained in:
commit
93bbe1b2f8
4 changed files with 47 additions and 6 deletions
|
@ -14,6 +14,7 @@
|
|||
[app.main.data.exports :as de]
|
||||
[app.main.data.modal :as modal]
|
||||
[app.main.data.workspace :as dw]
|
||||
[app.main.data.workspace.colors :as dc]
|
||||
[app.main.data.workspace.libraries :as dwl]
|
||||
[app.main.data.workspace.shortcuts :as sc]
|
||||
[app.main.refs :as refs]
|
||||
|
@ -436,10 +437,18 @@
|
|||
zoom (mf/deref refs/selected-zoom)
|
||||
params {:page-id page-id :file-id (:id file) :section "interactions"}
|
||||
|
||||
close-modals
|
||||
(mf/use-callback
|
||||
(fn []
|
||||
(st/emit! (dc/stop-picker))
|
||||
(st/emit! (modal/hide!))))
|
||||
|
||||
go-back
|
||||
(mf/use-callback
|
||||
(mf/deps project)
|
||||
#(st/emit! (dw/go-to-dashboard project)))
|
||||
(fn []
|
||||
(close-modals)
|
||||
(st/emit! (dw/go-to-dashboard project))))
|
||||
|
||||
go-viewer
|
||||
(mf/use-callback
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue