mirror of
https://github.com/penpot/penpot.git
synced 2026-09-19 10:26:14 +00:00
♻️ Migrate workspace zoom widget to modern syntax (#11637)
Migrate zoom-widget-workspace to zoom-widget-workspace* following the modern rumext component syntax: drop ::mf/wrap-props false and switch the callsite from [:& ...] to [:> ...]. No behavior change. Part of #9260 AI-assisted-by: muse-spark-1.3-contributor Signed-off-by: makesomethingshit <junsoo1172@gmail.com>
This commit is contained in:
parent
edf146db7b
commit
8c7230749c
@ -36,9 +36,8 @@
|
||||
|
||||
;; --- Zoom Widget
|
||||
|
||||
(mf/defc zoom-widget-workspace
|
||||
{::mf/wrap [mf/memo]
|
||||
::mf/wrap-props false}
|
||||
(mf/defc zoom-widget-workspace*
|
||||
{::mf/wrap [mf/memo]}
|
||||
[{:keys [zoom on-increase on-decrease on-zoom-reset on-zoom-fit on-zoom-selected]}]
|
||||
(let [open* (mf/use-state false)
|
||||
open? (deref open*)
|
||||
@ -207,7 +206,7 @@
|
||||
[:div {:class (stl/css :separator)}]
|
||||
|
||||
[:div {:class (stl/css :zoom-section)}
|
||||
[:& zoom-widget-workspace
|
||||
[:> zoom-widget-workspace*
|
||||
{:zoom zoom
|
||||
:on-increase on-increase
|
||||
:on-decrease on-decrease
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user