fix: resolve AddTorrent component import and type inference issues
All checks were successful
Build MIPS Binary / build (push) Successful in 1m53s
All checks were successful
Build MIPS Binary / build (push) Successful in 1m53s
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user