From bffec015d74e7a89558168b512b308c5d88e1d31 Mon Sep 17 00:00:00 2001 From: tmimmanuel <14046872+tmimmanuel@users.noreply.github.com> Date: Wed, 6 May 2026 13:40:20 -1000 Subject: [PATCH] :recycle: Migrate debug icons-preview to modern component syntax (#9381) 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 ++-- .../src/app/main/ui/debug/icons_preview.cljs | 17 +++++++---------- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/frontend/src/app/main/ui.cljs b/frontend/src/app/main/ui.cljs index 39ff4493dd..ca37930376 100644 --- a/frontend/src/app/main/ui.cljs +++ b/frontend/src/app/main/ui.cljs @@ -18,7 +18,7 @@ [app.main.router :as rt] [app.main.store :as st] [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.ds.product.loader :refer [loader*]] [app.main.ui.error-boundary :refer [error-boundary*]] @@ -211,7 +211,7 @@ :debug-icons-preview (when *assert* - [:& icons-preview]) + [:> icons-preview*]) :debug-playground (when *assert* diff --git a/frontend/src/app/main/ui/debug/icons_preview.cljs b/frontend/src/app/main/ui/debug/icons_preview.cljs index 03c7bd0d99..b519c26774 100644 --- a/frontend/src/app/main/ui/debug/icons_preview.cljs +++ b/frontend/src/app/main/ui/debug/icons_preview.cljs @@ -7,9 +7,8 @@ [cuerdas.core :as str] [rumext.v2 :as mf])) -(mf/defc icons-gallery - {::mf/wrap-props false - ::mf/private true} +(mf/defc icons-gallery* + {::mf/private true} [] (let [entries (->> (seq (js/Object.entries deprecated-icon/default)) (sort-by first))] @@ -21,9 +20,8 @@ val [:span key]])])) -(mf/defc cursors-gallery - {::mf/wrap-props false - ::mf/private true} +(mf/defc cursors-gallery* + {::mf/private true} [] (let [rotation (mf/use-state 0) entries (->> (seq (js/Object.entries c/default)) @@ -43,12 +41,11 @@ [:span (pr-str key)]]))])) -(mf/defc icons-preview - {::mf/wrap-props false} +(mf/defc icons-preview* [] [:article {:class (stl/css :container)} [:h2 {:class (stl/css :title)} "Cursors"] - [:& cursors-gallery] + [:> cursors-gallery*] [:h2 {:class (stl/css :title)} "Icons"] - [:& icons-gallery]]) + [:> icons-gallery*]])