mirror of
https://github.com/penpot/penpot.git
synced 2025-06-05 08:11:39 +02: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)]
|
[:div.element-icon (element-icon item)]
|
||||||
(shape-name 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)
|
;; --- Layer Group (Component)
|
||||||
|
|
||||||
(mx/defcs layer-group
|
(mx/defcs layer-group
|
||||||
|
@ -288,8 +280,7 @@
|
||||||
(for [shape (map #(get shapes-map %) (:items item))
|
(for [shape (map #(get shapes-map %) (:items item))
|
||||||
:let [key (str (:id shape))]]
|
:let [key (str (:id shape))]]
|
||||||
(if (= (:type shape) :group)
|
(if (= (:type shape) :group)
|
||||||
;; TODO: Fix this temporary hack (Looks like a problem in defcs macro)
|
(-> (layer-group shape selected)
|
||||||
(-> (defcs-macro-hack shape selected)
|
|
||||||
(mx/with-key key))
|
(mx/with-key key))
|
||||||
(-> (layer-simple shape selected)
|
(-> (layer-simple shape selected)
|
||||||
(mx/with-key key))))])])))
|
(mx/with-key key))))])])))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue