mirror of
https://github.com/penpot/penpot.git
synced 2025-08-06 11:08:29 +02:00
🐛 Fix missing key properties and react warnings
This commit is contained in:
parent
506f63317a
commit
d9d47b2c65
8 changed files with 27 additions and 29 deletions
|
@ -405,7 +405,6 @@
|
|||
shape (obj/get props "shape")
|
||||
elem-name (obj/get child "type")
|
||||
render-id (mf/use-ctx muc/render-ctx)]
|
||||
|
||||
[:g {:id (dm/fmt "fills-%" (:id shape))}
|
||||
[:> elem-name (build-fill-props shape child render-id)]]))
|
||||
|
||||
|
@ -434,12 +433,8 @@
|
|||
(mf/defc shape-custom-strokes
|
||||
{::mf/wrap-props false}
|
||||
[props]
|
||||
(let [child (obj/get props "children")
|
||||
shape (obj/get props "shape")]
|
||||
|
||||
(let [children (obj/get props "children")
|
||||
shape (obj/get props "shape")]
|
||||
[:*
|
||||
[:& shape-fills {:shape shape}
|
||||
child]
|
||||
|
||||
[:& shape-strokes {:shape shape}
|
||||
child]]))
|
||||
[:& shape-fills {:shape shape} children]
|
||||
[:& shape-strokes {:shape shape} children]]))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue