0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-06 14:50:20 -05:00

Inline concat

This commit is contained in:
Florian Schroedl 2024-07-08 14:40:07 +02:00
parent da0389e304
commit 82b44e6569

View file

@ -277,6 +277,7 @@
(defn generate-menu-entries [{:keys [token-id token-type-props token-type selected-shapes] :as context-data}]
(let [{:keys [modal]} token-type-props
attribute-actions (additional-actions context-data)
default-actions [{:title "Delete Token" :action #(st/emit! (dt/delete-token token-id))}
{:title "Duplicate Token" :action #(st/emit! (dt/duplicate-token token-id))}
{:title "Edit Token" :action (fn [event]
@ -288,10 +289,11 @@
:y (.-clientY ^js event)
:position :right
:fields fields
:token token})))}]
specific-actions (additional-actions context-data)
all-actions (concat specific-actions [:separator] default-actions)]
all-actions))
:token token})))}]]
(concat
attribute-actions
[:separator]
default-actions)))
(mf/defc token-pill-context-menu
[context-data]