♻️ 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:
tmimmanuel
2026-05-19 05:38:30 -10:00
committed by GitHub
parent ade587968f
commit 36c58287ae
2 changed files with 7 additions and 9 deletions

View File

@@ -19,7 +19,7 @@
[app.main.store :as st]
[app.main.ui.context :as ctx]
[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.error-boundary :refer [error-boundary*]]
[app.main.ui.exports.files]
@@ -215,7 +215,7 @@
:debug-playground
(when *assert*
[:& playground])
[:> playground*])
(:dashboard-search
:dashboard-recent

View File

@@ -5,9 +5,8 @@
[beicon.v2.core :as rx]
[rumext.v2 :as mf]))
(mf/defc playground-clipboard
{::mf/wrap-props false
::mf/private true}
(mf/defc playground-clipboard*
{::mf/private true}
[]
(let [on-paste (mf/use-fn
(fn [e]
@@ -42,10 +41,9 @@
[:button#paste {:on-click on-click} "Paste"]))
(mf/defc playground
{::mf/wrap-props false
::mf/private true}
(mf/defc playground*
{::mf/private true}
[]
[:& playground-clipboard])
[:> playground-clipboard*])