mirror of
https://github.com/penpot/penpot.git
synced 2025-01-06 14:50:20 -05:00
Inline concat
This commit is contained in:
parent
da0389e304
commit
82b44e6569
1 changed files with 6 additions and 4 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue