mirror of
https://github.com/penpot/penpot.git
synced 2026-05-19 23:13:39 +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)))
|
||||
[:> wrapper-elem wrapper-props
|
||||
(case shape-type
|
||||
:path [:> path/path-wrapper props]
|
||||
:path [:> path/path-wrapper* props]
|
||||
:text [:> text/text-wrapper props]
|
||||
:group [:> group-wrapper props]
|
||||
:rect [:> rect-wrapper props]
|
||||
|
||||
@ -26,8 +26,7 @@
|
||||
(let [shape (update shape :content types.path/apply-content-modifiers content-modifiers)]
|
||||
(types.path/update-geometry shape)))
|
||||
|
||||
(mf/defc path-wrapper
|
||||
{::mf/wrap-props false}
|
||||
(mf/defc path-wrapper*
|
||||
[{:keys [shape]}]
|
||||
(let [shape-id (dm/get-prop shape :id)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user