♻️ 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:
makesomethingshit 2026-09-17 22:37:51 +09:00 committed by GitHub
parent edf146db7b
commit 8c7230749c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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