mirror of
https://github.com/penpot/penpot.git
synced 2025-01-23 06:58:58 -05:00
Cleanup
This commit is contained in:
parent
386a4c94ba
commit
d5a03e154b
1 changed files with 4 additions and 4 deletions
|
@ -340,7 +340,7 @@
|
||||||
:on-context-menu prevent-default}
|
:on-context-menu prevent-default}
|
||||||
children]])]))
|
children]])]))
|
||||||
|
|
||||||
(mf/defc context-menu-tree
|
(mf/defc menu-tree
|
||||||
[{:keys [selected-shapes] :as context-data}]
|
[{:keys [selected-shapes] :as context-data}]
|
||||||
(let [entries (if (seq selected-shapes)
|
(let [entries (if (seq selected-shapes)
|
||||||
(selection-actions context-data)
|
(selection-actions context-data)
|
||||||
|
@ -350,7 +350,7 @@
|
||||||
(cond
|
(cond
|
||||||
(= :separator entry) [:li {:class (stl/css :separator)}]
|
(= :separator entry) [:li {:class (stl/css :separator)}]
|
||||||
submenu [:& menu-entry {:title title}
|
submenu [:& menu-entry {:title title}
|
||||||
[:& context-menu-tree (assoc context-data :type submenu)]]
|
[:& menu-tree (assoc context-data :type submenu)]]
|
||||||
:else [:& menu-entry
|
:else [:& menu-entry
|
||||||
{:title title
|
{:title title
|
||||||
:on-click action
|
:on-click action
|
||||||
|
@ -386,5 +386,5 @@
|
||||||
:style {:top top :left left}
|
:style {:top top :left left}
|
||||||
:on-context-menu prevent-default}
|
:on-context-menu prevent-default}
|
||||||
[:ul {:class (stl/css :context-list)}
|
[:ul {:class (stl/css :context-list)}
|
||||||
[:& context-menu-tree {:token token
|
[:& menu-tree {:token token
|
||||||
:selected-shapes selected-shapes}]]]]))
|
:selected-shapes selected-shapes}]]]]))
|
||||||
|
|
Loading…
Add table
Reference in a new issue