💄 Rework Login component

This commit is contained in:
2024-03-10 12:02:18 +01:00
parent 1073a592ed
commit c746fb6552
5 changed files with 344 additions and 147 deletions

View File

@@ -4,7 +4,6 @@ use tracing::debug;
use crate::base::SESSION;
use crate::components::contacts_window::ContactsWindow;
use crate::components::login::Login;
pub fn MainWindow(cx: Scope) -> Element {
debug!("MainWindow rendering");
@@ -16,8 +15,5 @@ pub fn MainWindow(cx: Scope) -> Element {
if is_logged {
rsx!(ContactsWindow {})
}
else {
rsx!(Login {})
}
})
}