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}])))]])))