Show component name in quo preview header (#18175)

This commit is contained in:
Ajay Sivan 2023-12-14 18:13:06 +05:30 committed by GitHub
parent e790f7177d
commit c1a17d9d53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

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