0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 23:18:48 -05:00

Reduce allocation on custom-shape-strokes react component

This commit is contained in:
Andrey Antukh 2023-12-27 20:26:01 +01:00
parent ad185c4215
commit ae4f14ece2

View file

@ -562,13 +562,6 @@
(mf/defc shape-custom-strokes
{::mf/wrap-props false}
[props]
(let [children (unchecked-get props "children")
shape (unchecked-get props "shape")
position (unchecked-get props "position")
render-id (unchecked-get props "render-id")
props #js {:shape shape
:position position
:render-id render-id}]
[:*
[:> shape-fills props children]
[:> shape-strokes props children]]))
[:*
[:> shape-fills props]
[:> shape-strokes props]])