summaryrefslogtreecommitdiffstats
path: root/src/components/icon.rs
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@bunny.garden>2025-06-11 02:54:27 +0100
committerLibravatar cel 🌸 <cel@bunny.garden>2025-06-11 02:54:27 +0100
commit838e99fd1577c52121e148efabcd624114a8b9ad (patch)
treedaaa4e0d00e53a851bf967f668cbc121018d4a5f /src/components/icon.rs
parent8bd186fe47eda25b36f945f926ce19093d16fe39 (diff)
downloadmacaw-web-838e99fd1577c52121e148efabcd624114a8b9ad.tar.gz
macaw-web-838e99fd1577c52121e148efabcd624114a8b9ad.tar.bz2
macaw-web-838e99fd1577c52121e148efabcd624114a8b9ad.zip
fmt: everything
Diffstat (limited to '')
-rw-r--r--src/components/icon.rs11
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 {
}
}
}
-
-