mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 11:18:36 +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/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…
x
Reference in New Issue
Block a user