mirror of
https://github.com/penpot/penpot.git
synced 2026-05-23 08:53:39 +00:00
♻️ Migrate debug playground to modern component syntax (#9367)
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
ade587968f
commit
36c58287ae
@ -19,7 +19,7 @@
|
|||||||
[app.main.store :as st]
|
[app.main.store :as st]
|
||||||
[app.main.ui.context :as ctx]
|
[app.main.ui.context :as ctx]
|
||||||
[app.main.ui.debug.icons-preview :refer [icons-preview*]]
|
[app.main.ui.debug.icons-preview :refer [icons-preview*]]
|
||||||
[app.main.ui.debug.playground :refer [playground]]
|
[app.main.ui.debug.playground :refer [playground*]]
|
||||||
[app.main.ui.ds.product.loader :refer [loader*]]
|
[app.main.ui.ds.product.loader :refer [loader*]]
|
||||||
[app.main.ui.error-boundary :refer [error-boundary*]]
|
[app.main.ui.error-boundary :refer [error-boundary*]]
|
||||||
[app.main.ui.exports.files]
|
[app.main.ui.exports.files]
|
||||||
@ -215,7 +215,7 @@
|
|||||||
|
|
||||||
:debug-playground
|
:debug-playground
|
||||||
(when *assert*
|
(when *assert*
|
||||||
[:& playground])
|
[:> playground*])
|
||||||
|
|
||||||
(:dashboard-search
|
(:dashboard-search
|
||||||
:dashboard-recent
|
:dashboard-recent
|
||||||
|
|||||||
@ -5,9 +5,8 @@
|
|||||||
[beicon.v2.core :as rx]
|
[beicon.v2.core :as rx]
|
||||||
[rumext.v2 :as mf]))
|
[rumext.v2 :as mf]))
|
||||||
|
|
||||||
(mf/defc playground-clipboard
|
(mf/defc playground-clipboard*
|
||||||
{::mf/wrap-props false
|
{::mf/private true}
|
||||||
::mf/private true}
|
|
||||||
[]
|
[]
|
||||||
(let [on-paste (mf/use-fn
|
(let [on-paste (mf/use-fn
|
||||||
(fn [e]
|
(fn [e]
|
||||||
@ -42,10 +41,9 @@
|
|||||||
|
|
||||||
[:button#paste {:on-click on-click} "Paste"]))
|
[:button#paste {:on-click on-click} "Paste"]))
|
||||||
|
|
||||||
(mf/defc playground
|
(mf/defc playground*
|
||||||
{::mf/wrap-props false
|
{::mf/private true}
|
||||||
::mf/private true}
|
|
||||||
[]
|
[]
|
||||||
[:& playground-clipboard])
|
[:> playground-clipboard*])
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user