Merge pull request #4318 from penpot/niwinz-staging-bugfix-2

🐛 Several bugfixes
This commit is contained in:
Alejandro 2024-03-22 16:45:03 +01:00 committed by GitHub
commit 43d7d91415
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 73 additions and 57 deletions

View file

@ -189,7 +189,14 @@
(mf/use-fn
(mf/deps style-code markup-code images-data)
(fn []
(wapi/write-to-clipboard (gen-all-code style-code markup-code images-data))))
(wapi/write-to-clipboard (gen-all-code style-code markup-code images-data))
(let [origin (if (= :workspace from)
"workspace"
"viewer")]
(st/emit! (ptk/event ::ev/event
{::ev/name "copy-inspect-code"
::ev/origin origin
:type "all"})))))
;;handle-open-review
;;(mf/use-fn