diff options
Diffstat (limited to '')
| -rw-r--r-- | src/components/icon.rs | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/components/icon.rs b/src/components/icon.rs index 7eaa52f..73b0f5d 100644 --- a/src/components/icon.rs +++ b/src/components/icon.rs @@ -1,5 +1,9 @@ -use leptos::prelude::*; +// SPDX-FileCopyrightText: 2025 cel <cel@bunny.garden> +// +// SPDX-License-Identifier: AGPL-3.0-or-later + use filamento::{chat::Delivery, presence::Show}; +use leptos::prelude::*; use crate::icon::Icon; @@ -7,7 +11,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 +62,3 @@ pub fn Delivery(delivery: Delivery) -> impl IntoView { } } } - - |
