0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-13 10:38:13 -05:00

🐛 Remove not necessary use-callback usage.

This commit is contained in:
Andrey Antukh 2020-05-04 10:42:43 +02:00
parent 80dcf587bf
commit af43eca399

View file

@ -216,16 +216,12 @@
shape' (if (debug? :simple-selection) (geom/selection-rect [shape]) shape)
on-resize
(mf/use-callback
(mf/deps shape-id)
#(do (dom/stop-propagation %2)
(st/emit! (dw/start-resize %1 #{shape-id} shape' objects))))
#(do (dom/stop-propagation %2)
(st/emit! (dw/start-resize %1 #{shape-id} shape' objects)))
on-rotate
(mf/use-callback
(mf/deps shape-id)
#(do (dom/stop-propagation %)
(st/emit! (dw/start-rotate [shape]))))]
#(do (dom/stop-propagation %)
(st/emit! (dw/start-rotate [shape])))]
[:& controls {:shape shape'
:zoom zoom
:on-rotate on-rotate