mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 22:22:43 -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]
|
(fn [shape]
|
||||||
(update shape :applied-tokens remove-keys attributes)))))))
|
(update shape :applied-tokens remove-keys attributes)))))))
|
||||||
|
|
||||||
(defn on-toggle-token
|
(defn toggle-token
|
||||||
[{:keys [token-type-props token shapes] :as _props}]
|
[{:keys [token-type-props token shapes] :as _props}]
|
||||||
(ptk/reify ::on-toggle-token
|
(ptk/reify ::on-toggle-token
|
||||||
ptk/WatchEvent
|
ptk/WatchEvent
|
||||||
|
|
|
@ -100,9 +100,9 @@
|
||||||
(fn [event token]
|
(fn [event token]
|
||||||
(dom/stop-propagation event)
|
(dom/stop-propagation event)
|
||||||
(st/emit!
|
(st/emit!
|
||||||
(wtc/on-toggle-token {:token token
|
(wtc/toggle-token {:token token
|
||||||
:shapes selected-shapes
|
:shapes selected-shapes
|
||||||
:token-type-props token-type-props}))))
|
:token-type-props token-type-props}))))
|
||||||
tokens-count (count tokens)]
|
tokens-count (count tokens)]
|
||||||
[:div {:on-click on-toggle-open-click}
|
[:div {:on-click on-toggle-open-click}
|
||||||
[:& cmm/asset-section {:icon (mf/fnc icon-wrapper [_]
|
[:& cmm/asset-section {:icon (mf/fnc icon-wrapper [_]
|
||||||
|
|
Loading…
Add table
Reference in a new issue