From 838e99fd1577c52121e148efabcd624114a8b9ad Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Wed, 11 Jun 2025 02:54:27 +0100 Subject: fmt: everything --- src/components/roster_list.rs | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) (limited to 'src/components/roster_list.rs') diff --git a/src/components/roster_list.rs b/src/components/roster_list.rs index 310b703..50c7989 100644 --- a/src/components/roster_list.rs +++ b/src/components/roster_list.rs @@ -6,14 +6,20 @@ use leptos::prelude::*; use reactive_stores::Store; use roster_list_item::RosterListItem; -use crate::{components::icon::IconComponent, icon::Icon, open_chats::{OpenChatsPanel, OpenChatsPanelStoreFields}, roster::{Roster, RosterStoreFields}}; +use crate::{ + components::icon::IconComponent, + icon::Icon, + open_chats::{OpenChatsPanel, OpenChatsPanelStoreFields}, + roster::{Roster, RosterStoreFields}, +}; mod contact_request_manager; mod roster_list_item; #[component] pub fn RosterList() -> impl IntoView { - let requests: ReadSignal> = use_context().expect("no pending subscriptions in context"); + let requests: ReadSignal> = + use_context().expect("no pending subscriptions in context"); let open_chats: Store = use_context().expect("no open chats panel store in context"); @@ -29,12 +35,13 @@ pub fn RosterList() -> impl IntoView {

Roster

- + {move || { if !requests.read().is_empty() { - view! { -
- }.into_any() + view! {
}.into_any() } else { view! {}.into_any() } @@ -47,17 +54,21 @@ pub fn RosterList() -> impl IntoView {
- }.into_any() + } + .into_any() } else { view! {}.into_any() } }}
- +
} } - -- cgit