From d5a03e154bec2857cfbe1771e79b8ccb8f42e79c Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Wed, 24 Jul 2024 14:57:33 +0200 Subject: [PATCH] Cleanup --- .../src/app/main/ui/workspace/tokens/context_menu.cljs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/tokens/context_menu.cljs b/frontend/src/app/main/ui/workspace/tokens/context_menu.cljs index 1c77e04d3..424fd0329 100644 --- a/frontend/src/app/main/ui/workspace/tokens/context_menu.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/context_menu.cljs @@ -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}]]]]))