From 40c9f66e5ccf432adc4984fde9dd29f62d811d69 Mon Sep 17 00:00:00 2001 From: spinline Date: Wed, 11 Feb 2026 01:42:58 +0300 Subject: [PATCH] fix: toast notifications context issue by wrapping app in SonnerProvider --- frontend/src/app.rs | 241 +++++++++++++++++++++++--------------------- 1 file changed, 124 insertions(+), 117 deletions(-) diff --git a/frontend/src/app.rs b/frontend/src/app.rs index d6473a4..eb82420 100644 --- a/frontend/src/app.rs +++ b/frontend/src/app.rs @@ -12,6 +12,15 @@ use leptos_shadcn_toast::SonnerProvider; #[component] pub fn App() -> impl IntoView { + view! { + + + + } +} + +#[component] +fn InnerApp() -> impl IntoView { crate::store::provide_torrent_store(); let store = use_context::(); @@ -70,126 +79,124 @@ pub fn App() -> impl IntoView { }); view! { - -
- - "404 Not Found"
}> - + + "404 Not Found" }> + } + } /> + } + } /> + + } - } /> - } - } /> - - - // Sidebar skeleton -
- -
- - - - - - -
-
- // Main content skeleton -
- // Header skeleton -
- - -
-
- // Table skeleton rows -
- - - - - - -
- // Status bar skeleton -
- -
-
- - }.into_any()> - - -
-
- -
- -
-
-
- - }.into_any() - }/> - - - - -
"Settings Page (Coming Soon)"
-
-
- } - }/> -
-
- -
+ }); + + view! { + + // Sidebar skeleton +
+ +
+ + + + + + +
+
+ // Main content skeleton +
+ // Header skeleton +
+ + +
+
+ // Table skeleton rows +
+ + + + + + +
+ // Status bar skeleton +
+ +
+
+ + }.into_any()> + + +
+
+ +
+ +
+
+
+
+ }.into_any() + }/> + + + + +
"Settings Page (Coming Soon)"
+
+
+ + } + }/> + + + } }