mirror of
https://github.com/penpot/penpot.git
synced 2026-07-06 22:28:12 +00:00
parent
ead9bd9ccc
commit
565ed042bc
@ -107,19 +107,19 @@
|
||||
props #js {:shape shape :thumbnail? thumbnail?}]
|
||||
(when (and (some? shape)
|
||||
(not ^boolean (:hidden shape)))
|
||||
[:> wrapper-elem wrapper-props
|
||||
(case shape-type
|
||||
:path [:> path/path-wrapper* props]
|
||||
:text [:> text/text-wrapper props]
|
||||
:group [:> group-wrapper props]
|
||||
:rect [:> rect-wrapper props]
|
||||
:image [:> image-wrapper props]
|
||||
:circle [:> circle-wrapper props]
|
||||
:svg-raw [:> svg-raw-wrapper props]
|
||||
:bool [:> bool-wrapper props]
|
||||
:frame [:> nested-frame-wrapper props]
|
||||
|
||||
nil)])))
|
||||
(mf/html
|
||||
[:> wrapper-elem wrapper-props
|
||||
(case shape-type
|
||||
:path [:> path/path-wrapper* props]
|
||||
:text [:> text/text-wrapper props]
|
||||
:group [:> group-wrapper props]
|
||||
:rect [:> rect-wrapper props]
|
||||
:image [:> image-wrapper props]
|
||||
:circle [:> circle-wrapper props]
|
||||
:svg-raw [:> svg-raw-wrapper props]
|
||||
:bool [:> bool-wrapper props]
|
||||
:frame [:> nested-frame-wrapper props]
|
||||
nil)]))))
|
||||
|
||||
(mf/defc root-frame-shape-wrapper
|
||||
{::mf/wrap [#(mf/memo' % common/check-shape-props)]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user