diff options
Diffstat (limited to 'src/components/icon.rs')
-rw-r--r-- | src/components/icon.rs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/components/icon.rs b/src/components/icon.rs index 7eaa52f..307d367 100644 --- a/src/components/icon.rs +++ b/src/components/icon.rs @@ -1,5 +1,5 @@ -use leptos::prelude::*; use filamento::{chat::Delivery, presence::Show}; +use leptos::prelude::*; use crate::icon::Icon; @@ -7,7 +7,12 @@ use crate::icon::Icon; #[component] pub fn IconComponent(icon: Icon) -> impl IntoView { view! { - <img class:light=icon.light() class:icon=true style=move || format!("height: {}px; width: {}px", icon.size(), icon.size()) src=move || icon.src() /> + <img + class:light=icon.light() + class:icon=true + style=move || format!("height: {}px; width: {}px", icon.size(), icon.size()) + src=move || icon.src() + /> } } @@ -53,5 +58,3 @@ pub fn Delivery(delivery: Delivery) -> impl IntoView { } } } - - |