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:
parent
80dcf587bf
commit
af43eca399
1 changed files with 4 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue