From a79ea5b4dc4cf5d67152fa8be5d13c7af1520472 Mon Sep 17 00:00:00 2001 From: luoxiao Date: Mon, 15 May 2023 12:22:45 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=B3=20chore:=20update=20leptos=5Ficons?= =?UTF-8?q?=20dependency?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.toml | 2 +- examples/basic/Cargo.toml | 2 +- src/button/mod.rs | 4 ++-- src/checkbox/mod.rs | 2 +- src/modal/mod.rs | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8d941c7..c94036a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ leptos = { version = "0.3.0", features = ["stable"] } stylers = "0.3.1" web-sys = { version = "0.3.62", features = ["DomRect"] } leptos_dom = { version = "0.3.0" } -leptos-icons = { git = "https://github.com/Carlosted/leptos-icons.git", features = ["AiCloseOutlined", "AiCheckOutlined"] } +leptos_icons = { version = "0.0.10", features = ["AiCloseOutlined", "AiCheckOutlined"] } wasm-bindgen = "0.2.85" [workspace] diff --git a/examples/basic/Cargo.toml b/examples/basic/Cargo.toml index bc93b8f..bd77b63 100644 --- a/examples/basic/Cargo.toml +++ b/examples/basic/Cargo.toml @@ -8,4 +8,4 @@ edition = "2021" [dependencies] leptos = { version = "0.3.0", features = ["stable"] } melt-ui = { path = "../../" } -leptos-icons = { git = "https://github.com/Carlosted/leptos-icons.git", features = ["AiCloseOutlined", "AiCheckOutlined"] } \ No newline at end of file +leptos_icons = { version = "0.0.10", features = ["AiCloseOutlined", "AiCheckOutlined"] } \ No newline at end of file diff --git a/src/button/mod.rs b/src/button/mod.rs index a101591..e03b0b6 100644 --- a/src/button/mod.rs +++ b/src/button/mod.rs @@ -40,7 +40,7 @@ pub fn Button( #[prop(optional, into)] type_: MaybeSignal, #[prop(optional, into)] color: MaybeSignal, #[prop(optional, into)] round: MaybeSignal, - #[prop(optional, into)] icon: Option, + #[prop(optional, into)] icon: Option, #[prop(optional)] children: Option, ) -> impl IntoView { let theme = use_theme(cx, Theme::light); @@ -80,7 +80,7 @@ pub fn Button( { if let Some(icon) = icon { view!{cx, - + }.into() } else { None diff --git a/src/checkbox/mod.rs b/src/checkbox/mod.rs index 6475bc4..27fa241 100644 --- a/src/checkbox/mod.rs +++ b/src/checkbox/mod.rs @@ -35,7 +35,7 @@ pub fn Checkbox( move || { if checked.get() { view! {cx, - + }.into() } else { None diff --git a/src/modal/mod.rs b/src/modal/mod.rs index ab7b313..1f80b6f 100644 --- a/src/modal/mod.rs +++ b/src/modal/mod.rs @@ -31,7 +31,7 @@ pub fn Modal( cx, <> - + }