mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02:00
⚡ Optimize layer-item component
This commit is contained in:
parent
f3b856b2af
commit
0bc468f434
5 changed files with 184 additions and 156 deletions
|
@ -13,7 +13,8 @@
|
|||
|
||||
|
||||
(mf/defc element-icon-refactor
|
||||
[{:keys [shape main-instance?] :as props}]
|
||||
{::mf/wrap-props false}
|
||||
[{:keys [shape main-instance?]}]
|
||||
(if (ctk/instance-head? shape)
|
||||
(if main-instance?
|
||||
i/component-refactor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue