♻️ 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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 9 deletions

View File

@ -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

View File

@ -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*])