mirror of
https://github.com/penpot/penpot.git
synced 2025-05-23 01:16:10 +02:00
⚡ Reduce allocation on custom-shape-strokes react component
This commit is contained in:
parent
ad185c4215
commit
ae4f14ece2
1 changed files with 3 additions and 10 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue