mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 06:02:32 -05:00
Rename event to toggle-token
This commit is contained in:
parent
71976ed7e9
commit
b12e59a8d7
2 changed files with 4 additions and 4 deletions
|
@ -105,7 +105,7 @@
|
|||
(fn [shape]
|
||||
(update shape :applied-tokens remove-keys attributes)))))))
|
||||
|
||||
(defn on-toggle-token
|
||||
(defn toggle-token
|
||||
[{:keys [token-type-props token shapes] :as _props}]
|
||||
(ptk/reify ::on-toggle-token
|
||||
ptk/WatchEvent
|
||||
|
|
|
@ -100,9 +100,9 @@
|
|||
(fn [event token]
|
||||
(dom/stop-propagation event)
|
||||
(st/emit!
|
||||
(wtc/on-toggle-token {:token token
|
||||
:shapes selected-shapes
|
||||
:token-type-props token-type-props}))))
|
||||
(wtc/toggle-token {:token token
|
||||
:shapes selected-shapes
|
||||
:token-type-props token-type-props}))))
|
||||
tokens-count (count tokens)]
|
||||
[:div {:on-click on-toggle-open-click}
|
||||
[:& cmm/asset-section {:icon (mf/fnc icon-wrapper [_]
|
||||
|
|
Loading…
Add table
Reference in a new issue