🎨 Isolate infra and ui components
The src/base.rs is still to be reworked.
This commit is contained in:
15
src/ui/components/main_window.rs
Normal file
15
src/ui/components/main_window.rs
Normal file
@@ -0,0 +1,15 @@
|
||||
use dioxus::prelude::*;
|
||||
use tracing::debug;
|
||||
|
||||
use crate::base::SESSION;
|
||||
use crate::ui::components::contacts_window::ContactsWindow;
|
||||
|
||||
pub fn MainWindow() -> Element {
|
||||
debug!("MainWindow rendering");
|
||||
|
||||
rsx! {
|
||||
if SESSION.read().is_logged {
|
||||
ContactsWindow {}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user