diff --git a/frontend/src/components/torrent/table.rs b/frontend/src/components/torrent/table.rs index d8083c9..6e6ea7d 100644 --- a/frontend/src/components/torrent/table.rs +++ b/frontend/src/components/torrent/table.rs @@ -3,7 +3,7 @@ use leptos::logging; use leptos::html; use leptos::task::spawn_local; use leptos_use::{on_click_outside, use_timeout_fn}; -use crate::store::{get_action_messages, show_toast_with_signal, FilterStatus, TorrentStore}; +use crate::store::{get_action_messages, show_toast_with_signal, FilterStatus}; use crate::api; use shared::{NotificationLevel, Torrent}; use std::collections::HashMap; @@ -192,7 +192,7 @@ pub fn TorrentTable() -> impl IntoView { } } else { view! { "▲" } - .into_view() + .into_any() } }; @@ -382,8 +382,8 @@ pub fn TorrentTable() -> impl IntoView { visible=true position=menu_position.get() torrent_hash=selected_hash.get().unwrap_or_default() - on_close=Callback::from(move |()| set_menu_visible.set(false)) - on_action=Callback::from(move |args| on_action(args)) + on_close=Callback::new(move |()| set_menu_visible.set(false)) + on_action=Callback::new(move |args| on_action(args)) /> @@ -449,7 +449,7 @@ fn TorrentRow( } >