mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-27 14:40:44 +00:00
Update use_shared_state.rs
This commit is contained in:
parent
d93d11262d
commit
a3654fd0b8
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ impl<T> ProvidedStateInner<T> {
|
||||||
/// let current_theme = *theme.read();
|
/// let current_theme = *theme.read();
|
||||||
///
|
///
|
||||||
/// render! {
|
/// render! {
|
||||||
/// match &*theme.read() {
|
/// match current_theme {
|
||||||
/// Theme::Dark => {
|
/// Theme::Dark => {
|
||||||
/// "Dark mode"
|
/// "Dark mode"
|
||||||
/// }
|
/// }
|
||||||
|
|
Loading…
Reference in a new issue