mirror of
https://github.com/penpot/penpot.git
synced 2026-05-07 00:58:48 +00:00
♻️ Migrate frame-preview to modern component syntax (#9382)
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
bffec015d7
commit
eca487afc5
@ -362,7 +362,7 @@
|
||||
:share share}])
|
||||
|
||||
:frame-preview
|
||||
[:& frame-preview/frame-preview]
|
||||
[:> frame-preview/frame-preview*]
|
||||
|
||||
nil)]))
|
||||
|
||||
|
||||
@ -9,9 +9,8 @@
|
||||
[app.common.data :as d]
|
||||
[rumext.v2 :as mf]))
|
||||
|
||||
(mf/defc frame-preview
|
||||
{::mf/wrap-props false
|
||||
::mf/wrap [mf/memo]}
|
||||
(mf/defc frame-preview*
|
||||
{::mf/wrap [mf/memo]}
|
||||
[]
|
||||
|
||||
(let [iframe-ref (mf/use-ref nil)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user