fix: resolve AddTorrent component import and type inference issues
All checks were successful
Build MIPS Binary / build (push) Successful in 1m53s

This commit is contained in:
spinline
2026-02-14 01:35:57 +03:00
parent 1a5f22d302
commit c0bb920409

View File

@@ -3,10 +3,26 @@ use leptos::task::spawn_local;
use wasm_bindgen::JsCast;
use crate::components::ui::input::{Input, InputType};
use crate::api;
use crate::components::ui::button::Button;
use crate::components::ui::button::{Button, ButtonVariant};
use crate::components::ui::dialog::{
DialogBody, DialogHeader, DialogTitle, DialogDescription, DialogFooter, DialogClose
Dialog, DialogTrigger, DialogContent, DialogBody, DialogHeader, DialogTitle, DialogDescription, DialogFooter, DialogClose
};
use icons::Play;
#[component]
pub fn AddTorrent() -> impl IntoView {
view! {
<Dialog>
<DialogTrigger variant=ButtonVariant::Default class="gap-2">
<Play class="size-4" />
<span class="hidden sm:inline">"Add Torrent"</span>
</DialogTrigger>
<DialogContent id="add-torrent-dialog">
<AddTorrentDialogContent />
</DialogContent>
</Dialog>
}
}
#[component]
pub fn AddTorrentDialogContent() -> impl IntoView {