0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-20 19:51:23 -05:00

Remove previously introduced hack for recursive layer-group component.

This commit is contained in:
Andrey Antukh 2016-12-28 15:34:27 +01:00
parent 447d484f7b
commit e6fa720ce1
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -193,14 +193,6 @@
[:div.element-icon (element-icon item)]
(shape-name item)]])))
;; TODO: Fix this temporary hack (Looks like a problem in defcs macro)
(declare layer-group)
(mx/defc defcs-macro-hack
{:mixins [mx/static mx/reactive (mx/local)]}
[shape selected]
(layer-group shape selected))
;; --- Layer Group (Component)
(mx/defcs layer-group
@ -288,8 +280,7 @@
(for [shape (map #(get shapes-map %) (:items item))
:let [key (str (:id shape))]]
(if (= (:type shape) :group)
;; TODO: Fix this temporary hack (Looks like a problem in defcs macro)
(-> (defcs-macro-hack shape selected)
(-> (layer-group shape selected)
(mx/with-key key))
(-> (layer-simple shape selected)
(mx/with-key key))))])])))