feat(ui): toast entegrasyonu (sonner)
All checks were successful
Build MIPS Binary / build (push) Successful in 5m13s

This commit is contained in:
spinline
2026-02-11 21:32:39 +03:00
parent 7539307e18
commit a24e4101e8
8 changed files with 260 additions and 29 deletions

View File

@@ -6,20 +6,20 @@ use leptos::prelude::*;
use leptos::task::spawn_local;
use leptos_router::components::{Router, Routes, Route};
use leptos_router::hooks::use_navigate;
use crate::components::toast::Toaster;
use crate::components::ui::toast::Toaster;
#[component]
pub fn App() -> impl IntoView {
crate::components::ui::toast::provide_toaster();
view! {
<InnerApp />
<Toaster />
<InnerApp />
}
}
#[component]
fn InnerApp() -> impl IntoView {
crate::store::provide_torrent_store();
crate::components::toast::provide_toast_context();
let store = use_context::<crate::store::TorrentStore>();
let is_loading = signal(true);