0
Fork 0
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:
Florian Schroedl 2024-07-04 09:13:02 +02:00
parent 71976ed7e9
commit b12e59a8d7
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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 [_]