mirror of
https://github.com/penpot/penpot.git
synced 2026-09-11 06:28:47 +00:00
♻️ Migrate workspace path-wrapper to modern component syntax (#9393)
Signed-off-by: tmimmanuel <155203395+tmimmanuel@users.noreply.github.com> Co-authored-by: tmimmanuel <155203395+tmimmanuel@users.noreply.github.com> Co-authored-by: Andrey Antukh <niwi@niwi.nz>
This commit is contained in:
parent
e854309049
commit
54a866d0b5
@ -125,7 +125,7 @@
|
|||||||
(not ^boolean (:hidden shape)))
|
(not ^boolean (:hidden shape)))
|
||||||
[:> wrapper-elem wrapper-props
|
[:> wrapper-elem wrapper-props
|
||||||
(case shape-type
|
(case shape-type
|
||||||
:path [:> path/path-wrapper props]
|
:path [:> path/path-wrapper* props]
|
||||||
:text [:> text/text-wrapper props]
|
:text [:> text/text-wrapper props]
|
||||||
:group [:> group-wrapper props]
|
:group [:> group-wrapper props]
|
||||||
:rect [:> rect-wrapper props]
|
:rect [:> rect-wrapper props]
|
||||||
|
|||||||
@ -26,8 +26,7 @@
|
|||||||
(let [shape (update shape :content types.path/apply-content-modifiers content-modifiers)]
|
(let [shape (update shape :content types.path/apply-content-modifiers content-modifiers)]
|
||||||
(types.path/update-geometry shape)))
|
(types.path/update-geometry shape)))
|
||||||
|
|
||||||
(mf/defc path-wrapper
|
(mf/defc path-wrapper*
|
||||||
{::mf/wrap-props false}
|
|
||||||
[{:keys [shape]}]
|
[{:keys [shape]}]
|
||||||
(let [shape-id (dm/get-prop shape :id)
|
(let [shape-id (dm/get-prop shape :id)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user