mirror of
https://github.com/penpot/penpot.git
synced 2026-09-12 15:09:38 +00:00
⚡ Reduce allocation on custom-shape-strokes react component
This commit is contained in:
parent
ad185c4215
commit
ae4f14ece2
@ -562,13 +562,6 @@
|
|||||||
(mf/defc shape-custom-strokes
|
(mf/defc shape-custom-strokes
|
||||||
{::mf/wrap-props false}
|
{::mf/wrap-props false}
|
||||||
[props]
|
[props]
|
||||||
(let [children (unchecked-get props "children")
|
[:*
|
||||||
shape (unchecked-get props "shape")
|
[:> shape-fills props]
|
||||||
position (unchecked-get props "position")
|
[:> shape-strokes props]])
|
||||||
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]]))
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user