0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-15 08:21:40 -05:00

🔥 Remove unnecessary prevent and stop (#5799)

This commit is contained in:
Marina López 2025-02-07 11:07:47 +01:00 committed by GitHub
parent 5fa96315e3
commit a98111f68d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,9 +24,7 @@
[{:keys [on-create on-finish-import project-id] :as props}]
(let [file-input (mf/use-ref nil)
on-add-library (mf/use-fn
(fn [event]
(dom/prevent-default event)
(dom/stop-propagation event)
(fn [_]
(st/emit! (ptk/event ::ev/event {::ev/name "explore-libraries-click"
::ev/origin "dashboard"
:section "empty-placeholder-projects"}))