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:
parent
447d484f7b
commit
e6fa720ce1
1 changed files with 1 additions and 10 deletions
|
@ -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))))])])))
|
||||
|
|
Loading…
Add table
Reference in a new issue