fix: toast notifications context issue by wrapping app in SonnerProvider
All checks were successful
Build MIPS Binary / build (push) Successful in 5m14s

This commit is contained in:
spinline
2026-02-11 01:42:58 +03:00
parent 93e853977a
commit 40c9f66e5c

View File

@@ -12,6 +12,15 @@ use leptos_shadcn_toast::SonnerProvider;
#[component]
pub fn App() -> impl IntoView {
view! {
<SonnerProvider>
<InnerApp />
</SonnerProvider>
}
}
#[component]
fn InnerApp() -> impl IntoView {
crate::store::provide_torrent_store();
let store = use_context::<crate::store::TorrentStore>();
@@ -70,7 +79,6 @@ pub fn App() -> impl IntoView {
});
view! {
<SonnerProvider>
<div class="relative w-full h-screen" style="height: 100dvh;">
<Router>
<Routes fallback=|| view! { <div class="p-4">"404 Not Found"</div> }>
@@ -190,6 +198,5 @@ pub fn App() -> impl IntoView {
</Routes>
</Router>
</div>
</SonnerProvider>
}
}