From 36c58287ae22c8353dde8fdff144001b43eb60b2 Mon Sep 17 00:00:00 2001 From: tmimmanuel <14046872+tmimmanuel@users.noreply.github.com> Date: Tue, 19 May 2026 05:38:30 -1000 Subject: [PATCH] :recycle: 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 --- frontend/src/app/main/ui.cljs | 4 ++-- frontend/src/app/main/ui/debug/playground.cljs | 12 +++++------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/frontend/src/app/main/ui.cljs b/frontend/src/app/main/ui.cljs index c8a14df857..970fe31d09 100644 --- a/frontend/src/app/main/ui.cljs +++ b/frontend/src/app/main/ui.cljs @@ -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 diff --git a/frontend/src/app/main/ui/debug/playground.cljs b/frontend/src/app/main/ui/debug/playground.cljs index c96c6c4dca..6632f06560 100644 --- a/frontend/src/app/main/ui/debug/playground.cljs +++ b/frontend/src/app/main/ui/debug/playground.cljs @@ -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*])