0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-11 23:31:21 -05:00

💄 Add minor cosmetic changes to custom-stroke react component

This commit is contained in:
Andrey Antukh 2024-01-05 12:38:28 +01:00
parent 8b57dcf015
commit 260879791b

View file

@ -282,17 +282,11 @@
(mf/defc outer-stroke
{::mf/wrap-props false}
[props]
(let [child (unchecked-get props "children")
shape (unchecked-get props "shape")
stroke (unchecked-get props "stroke")
index (unchecked-get props "index")
shape-id (dm/get-prop shape :id)
[{:keys [children shape stroke index]}]
(let [shape-id (dm/get-prop shape :id)
render-id (mf/use-ctx muc/render-id)
props (obj/get child "props")
props (obj/get children "props")
style (obj/get props "style")
stroke-width (:stroke-width stroke 0)
@ -305,7 +299,7 @@
[:g.outer-stroke-shape
[:defs
[:& stroke-defs {:shape shape :stroke stroke :render-id render-id :index index}]
(let [type (obj/get child "type")
(let [type (obj/get children "type")
style (-> (obj/clone style)
(obj/unset! "fill")
(obj/unset! "fillOpacity")