0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-06 14:50:20 -05:00
This commit is contained in:
Florian Schroedl 2024-07-24 14:57:33 +02:00
parent 386a4c94ba
commit d5a03e154b

View file

@ -340,7 +340,7 @@
:on-context-menu prevent-default}
children]])]))
(mf/defc context-menu-tree
(mf/defc menu-tree
[{:keys [selected-shapes] :as context-data}]
(let [entries (if (seq selected-shapes)
(selection-actions context-data)
@ -350,7 +350,7 @@
(cond
(= :separator entry) [:li {:class (stl/css :separator)}]
submenu [:& menu-entry {:title title}
[:& context-menu-tree (assoc context-data :type submenu)]]
[:& menu-tree (assoc context-data :type submenu)]]
:else [:& menu-entry
{:title title
:on-click action
@ -386,5 +386,5 @@
:style {:top top :left left}
:on-context-menu prevent-default}
[:ul {:class (stl/css :context-list)}
[:& context-menu-tree {:token token
:selected-shapes selected-shapes}]]]]))
[:& menu-tree {:token token
:selected-shapes selected-shapes}]]]]))