From f06a2ae4e3db6d87285f5ca375c3abd347caa1e4 Mon Sep 17 00:00:00 2001 From: tmimmanuel <14046872+tmimmanuel@users.noreply.github.com> Date: Sun, 10 May 2026 02:16:43 -1000 Subject: [PATCH] :recycle: Migrate inspect fill/stroke deprecated blocks to modern syntax (#9392) Signed-off-by: tmimmanuel <155203395+tmimmanuel@users.noreply.github.com> Co-authored-by: tmimmanuel <155203395+tmimmanuel@users.noreply.github.com> --- frontend/src/app/main/ui/inspect/attributes/fill.cljs | 11 +++++------ .../src/app/main/ui/inspect/attributes/stroke.cljs | 9 ++++----- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/frontend/src/app/main/ui/inspect/attributes/fill.cljs b/frontend/src/app/main/ui/inspect/attributes/fill.cljs index 7c3ea85640..e1aa09a1ac 100644 --- a/frontend/src/app/main/ui/inspect/attributes/fill.cljs +++ b/frontend/src/app/main/ui/inspect/attributes/fill.cljs @@ -27,8 +27,7 @@ ;; DEPRECATED, use fill-block-styles* instead. ;; This component is kept for backward compatibility -(mf/defc fill-block - {::mf/wrap-props false} +(mf/defc fill-block* [{:keys [objects shape]}] (let [format* (mf/use-state :hex) format (deref format*) @@ -84,7 +83,7 @@ :shape shape}]) (if (seq (:fills shape)) (for [value (:fills shape [])] - [:& fill-block {:key (str "fill-block-" (:id shape) value) - :shape value}]) - [:& fill-block {:key (str "fill-block-only" (:id shape)) - :shape shape}])))]]))) + [:> fill-block* {:key (str "fill-block-" (:id shape) value) + :shape value}]) + [:> fill-block* {:key (str "fill-block-only" (:id shape)) + :shape shape}])))]]))) diff --git a/frontend/src/app/main/ui/inspect/attributes/stroke.cljs b/frontend/src/app/main/ui/inspect/attributes/stroke.cljs index 1592cc5002..b4e565583f 100644 --- a/frontend/src/app/main/ui/inspect/attributes/stroke.cljs +++ b/frontend/src/app/main/ui/inspect/attributes/stroke.cljs @@ -31,8 +31,7 @@ ;; DEPRECATED, use stroke-block-styles* instead. ;; This component is kept for backward compatibility -(mf/defc stroke-block - {::mf/wrap-props false} +(mf/defc stroke-block* [{:keys [objects shape stroke]}] (let [format* (mf/use-state :hex) format (deref format*) @@ -100,6 +99,6 @@ :shape shape :color-space color-space :stroke stroke}] - [:& stroke-block {:key (str "stroke-color-" (:id shape) stroke) - :shape shape - :stroke stroke}])))]]))) + [:> stroke-block* {:key (str "stroke-color-" (:id shape) stroke) + :shape shape + :stroke stroke}])))]])))