mirror of
https://github.com/penpot/penpot.git
synced 2025-06-14 02:11:38 +02:00
🎉 Add the concept of 'main instance'
This commit is contained in:
parent
758d0d8943
commit
5dc7bc213f
14 changed files with 122 additions and 45 deletions
|
@ -11,7 +11,7 @@
|
|||
|
||||
|
||||
(mf/defc element-icon
|
||||
[{:keys [shape] :as props}]
|
||||
[{:keys [shape main-instance?] :as props}]
|
||||
(case (:type shape)
|
||||
:frame i/artboard
|
||||
:image i/image
|
||||
|
@ -21,7 +21,9 @@
|
|||
:rect i/box
|
||||
:text i/text
|
||||
:group (if (some? (:component-id shape))
|
||||
i/component
|
||||
(if main-instance?
|
||||
i/component
|
||||
i/component-copy)
|
||||
(if (:masked-group? shape)
|
||||
i/mask
|
||||
i/folder))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue