♻️ Rename views -> layouts

This commit is contained in:
2024-05-24 22:35:10 +02:00
parent e7e1a4d663
commit 8ed4ff3f2a
6 changed files with 8 additions and 8 deletions

View File

@@ -30,7 +30,7 @@ use crate::base::{login, sync_rooms};
use crate::base::{APP_SETTINGS, ROOMS, SESSION};
use crate::ui::components::login::Login;
use crate::ui::components::main_window::MainWindow;
use crate::ui::views::login_view::LoginView;
use crate::ui::layouts::login::Login;
mod base;
@@ -103,7 +103,7 @@ fn app() -> Element {
}
} else {
rsx! {
LoginView {},
Login {},
}
}
}

View File

@@ -1,11 +1,11 @@
use dioxus::prelude::*;
use crate::ui::components::login::Login;
use crate::ui::components::login::Login as LoginComponent;
use crate::ui::components::wallpaper::Wallpaper;
turf::style_sheet!("src/ui/views/login_view.scss");
turf::style_sheet!("src/ui/layouts/login.scss");
pub fn LoginView() -> Element {
pub fn Login() -> Element {
rsx! {
style { {STYLE_SHEET} },
@@ -18,7 +18,7 @@ pub fn LoginView() -> Element {
div {
class: ClassName::LOGIN_VIEW_LOGIN_PANEL,
Login {}
LoginComponent {}
}
}
}

1
src/ui/layouts/mod.rs Normal file
View File

@@ -0,0 +1 @@
pub(crate) mod login;

View File

@@ -1,3 +1,3 @@
pub(crate) mod components;
pub(crate) mod layouts;
pub(crate) mod store;
pub(crate) mod views;

View File

@@ -1 +0,0 @@
pub(crate) mod login_view;