Show component name in quo preview header (#18175)
This commit is contained in:
parent
e790f7177d
commit
c1a17d9d53
|
@ -5,6 +5,7 @@
|
||||||
[quo.core :as quo]
|
[quo.core :as quo]
|
||||||
[quo.foundations.colors :as colors]
|
[quo.foundations.colors :as colors]
|
||||||
[quo.theme :as quo.theme]
|
[quo.theme :as quo.theme]
|
||||||
|
[re-frame.core :as rf]
|
||||||
[react-native.blur :as blur]
|
[react-native.blur :as blur]
|
||||||
[react-native.core :as rn]
|
[react-native.core :as rn]
|
||||||
[react-native.safe-area :as safe-area]
|
[react-native.safe-area :as safe-area]
|
||||||
|
@ -320,9 +321,10 @@
|
||||||
[{:keys [title state descriptor blur? blur-dark-only?
|
[{:keys [title state descriptor blur? blur-dark-only?
|
||||||
component-container-style
|
component-container-style
|
||||||
blur-container-style blur-view-props blur-height show-blur-background?]
|
blur-container-style blur-view-props blur-height show-blur-background?]
|
||||||
:or {blur-height 200 title "quo component"}}
|
:or {blur-height 200}}
|
||||||
& children]
|
& 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 []
|
(rn/use-effect (fn []
|
||||||
(when blur-dark-only?
|
(when blur-dark-only?
|
||||||
(if blur?
|
(if blur?
|
||||||
|
|
Loading…
Reference in New Issue