diff --git a/frontend/src/app.rs b/frontend/src/app.rs index 616d717..078dae4 100644 --- a/frontend/src/app.rs +++ b/frontend/src/app.rs @@ -1,13 +1,12 @@ use crate::components::layout::protected::Protected; use crate::components::ui::skeleton::Skeleton; -use crate::components::ui::card::{Card, CardHeader, CardContent}; use crate::components::torrent::table::TorrentTable; use crate::components::auth::login::Login; use crate::components::auth::setup::Setup; use leptos::prelude::*; use leptos::task::spawn_local; use leptos_router::components::{Router, Routes, Route}; -use leptos_router::hooks::{use_navigate, use_location}; +use leptos_router::hooks::use_navigate; use crate::components::ui::toast::Toaster; use crate::components::hooks::use_theme_mode::ThemeMode; @@ -42,7 +41,6 @@ pub fn App() -> impl IntoView { fn InnerApp() -> impl IntoView { crate::store::provide_torrent_store(); let store = use_context::(); - let loc = use_location(); let is_loading = signal(true); let is_authenticated = signal(false); @@ -131,71 +129,71 @@ fn InnerApp() -> impl IntoView { view! { } } /> - - // Sidebar skeleton -
- -
- - - - - - -
-
- // Main content skeleton -
-
- - -
-
-
- - - - - - -
-
- -
+ } + }); + + view! { + + // Sidebar skeleton +
+ +
+ + + + + +
- }.into_any() - }> - - -
-
- -
+ // Main content skeleton +
+
+ + +
- - +
+ + + + + + +
+
+ +
+
+
+ }.into_any() + }> + + +
+
+ +
+
+
- }.into_any() - }/> +
+ }.into_any() + }/> impl IntoView { "VazgeƧ"