tracing package doesn't support web platform when dioxus-logger `will eventually support every target that Dioxus does. Currently only web and desktop platforms are supported.`
27 lines
705 B
Rust
27 lines
705 B
Rust
use std::rc::Rc;
|
|
|
|
use dioxus::prelude::*;
|
|
use log::debug;
|
|
|
|
use crate::ui::components::contacts_window::contacts_section::{
|
|
filter_people_conversations, filter_room_conversations, ContactsSection,
|
|
};
|
|
|
|
turf::style_sheet!("src/ui/components/contacts_window/contacts.scss");
|
|
|
|
pub fn Contacts() -> Element {
|
|
debug!("Contacts rendering");
|
|
|
|
// TODO: Test overflow
|
|
// TODO: Add offline users ?
|
|
rsx! {
|
|
style { {STYLE_SHEET} },
|
|
|
|
div {
|
|
class: ClassName::CONTACTS,
|
|
ContactsSection {name: "Groups", filter: Rc::new(filter_room_conversations)},
|
|
ContactsSection {name: "Available", filter: Rc::new(filter_people_conversations)},
|
|
},
|
|
}
|
|
}
|