0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-26 08:45:34 -05:00

Fix some issues in rendering groups in view app.

This commit is contained in:
Andrey Antukh 2016-08-30 19:19:20 +03:00
parent dffab9a482
commit 063e82c4a9
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -59,15 +59,17 @@
;; --- Shapes
(declare shape)
(mx/defc shape*
[{:keys [type] :as shape}]
[{:keys [type] :as item}]
(case type
:group (group-shape shape #(interactions-wrapper % shape*))
:text (text-shape shape)
:icon (icon-shape shape)
:rect (rect-shape shape)
:path (path-shape shape)
:circle (circle-shape shape)))
:group (group-shape item shape)
:text (text-shape item)
:icon (icon-shape item)
:rect (rect-shape item)
:path (path-shape item)
:circle (circle-shape item)))
(mx/defc shape
[sid]