From c1a17d9d53e3c4d884631fe27d6a942206000106 Mon Sep 17 00:00:00 2001 From: Ajay Sivan Date: Thu, 14 Dec 2023 18:13:06 +0530 Subject: [PATCH] Show component name in quo preview header (#18175) --- src/status_im2/contexts/quo_preview/preview.cljs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/status_im2/contexts/quo_preview/preview.cljs b/src/status_im2/contexts/quo_preview/preview.cljs index 72aab421d4..dd667dab6a 100644 --- a/src/status_im2/contexts/quo_preview/preview.cljs +++ b/src/status_im2/contexts/quo_preview/preview.cljs @@ -5,6 +5,7 @@ [quo.core :as quo] [quo.foundations.colors :as colors] [quo.theme :as quo.theme] + [re-frame.core :as rf] [react-native.blur :as blur] [react-native.core :as rn] [react-native.safe-area :as safe-area] @@ -320,9 +321,10 @@ [{:keys [title state descriptor blur? blur-dark-only? component-container-style blur-container-style blur-view-props blur-height show-blur-background?] - :or {blur-height 200 title "quo component"}} + :or {blur-height 200}} & children] - (let [theme (quo.theme/use-theme-value)] + (let [theme (quo.theme/use-theme-value) + title (or title @(rf/subscribe [:view-id]))] (rn/use-effect (fn [] (when blur-dark-only? (if blur?