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:
parent
ad185c4215
commit
ae4f14ece2
1 changed files with 3 additions and 10 deletions
|
@ -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]])
|
||||
|
|
Loading…
Add table
Reference in a new issue