From c0bb920409b3b4bbf95ad86fa73e027910f1b227 Mon Sep 17 00:00:00 2001 From: spinline Date: Sat, 14 Feb 2026 01:35:57 +0300 Subject: [PATCH] fix: resolve AddTorrent component import and type inference issues --- .../src/components/torrent/add_torrent.rs | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/torrent/add_torrent.rs b/frontend/src/components/torrent/add_torrent.rs index 018980f..b0acb9a 100644 --- a/frontend/src/components/torrent/add_torrent.rs +++ b/frontend/src/components/torrent/add_torrent.rs @@ -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! { + + + + + + + + + + } +} #[component] pub fn AddTorrentDialogContent() -> impl IntoView {