From 710419404c4f292cca3b77d6aa559e1aff3716e2 Mon Sep 17 00:00:00 2001 From: Maccesch Date: Sat, 10 Feb 2024 10:51:40 +0000 Subject: [PATCH] removed storage feature from use_color_mode docs --- src/use_color_mode.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/use_color_mode.rs b/src/use_color_mode.rs index 80cb5e3..919efde 100644 --- a/src/use_color_mode.rs +++ b/src/use_color_mode.rs @@ -240,7 +240,6 @@ where /// Color modes #[derive(Clone, Default, PartialEq, Eq, Hash, Debug)] -#[cfg_attr(feature = "storage", derive(Serialize, Deserialize))] pub enum ColorMode { #[default] Auto, @@ -343,24 +342,20 @@ where on_changed: OnChangedFn, /// When provided, `useStorage` will be skipped. - /// Storage requires the *create feature* **`storage`** to be enabled. /// Defaults to `None`. #[builder(into)] storage_signal: Option>, /// Key to persist the data into localStorage/sessionStorage. - /// Storage requires the *create feature* **`storage`** to be enabled. /// Defaults to `"leptos-use-color-scheme"`. #[builder(into)] storage_key: String, /// Storage type, can be `Local` or `Session` or custom. - /// Storage requires the *create feature* **`storage`** to be enabled. /// Defaults to `Local`. storage: StorageType, /// If the color mode should be persisted. If `true` this required the - /// *create feature* **`storage`** to be enabled. /// Defaults to `true`. storage_enabled: bool, @@ -376,7 +371,6 @@ where transition_enabled: bool, /// Listen to changes to this storage key from somewhere else. - /// Storage requires the *create feature* **`storage`** to be enabled. /// Defaults to true. listen_to_storage_changes: bool,