fix: resolve E0282 type inference on CI and clear warnings
Some checks failed
Build MIPS Binary / build (push) Failing after 35s

This commit is contained in:
spinline
2026-02-21 01:04:00 +03:00
parent 3c2ba477f5
commit 4d02bc655d
4 changed files with 17 additions and 18 deletions

View File

@@ -106,22 +106,24 @@ pub fn TorrentDetailsSheet() -> impl IntoView {
</TabsContent>
<TabsContent value="files" class="h-full">
{move || {
if let Some(t) = selected_torrent.get() {
<Show
when=move || selected_torrent.get().is_some()
fallback=move || view! {
<div class="flex flex-col items-center justify-center h-48 opacity-60">
<icons::File class="size-12 mb-3 text-muted-foreground" />
<p class="text-sm font-medium">"Dosya yükleniyor..."</p>
</div>
}
>
{move || {
let t = selected_torrent.get().unwrap();
view! {
<div class="h-full overflow-y-auto pr-2 pb-8">
<crate::components::torrent::files::TorrentFilesTab hash=t.hash />
</div>
}.into_any()
} else {
view! {
<div class="flex flex-col items-center justify-center h-48 opacity-60">
<icons::File class="size-12 mb-3 text-muted-foreground" />
<p class="text-sm font-medium">"Dosya yükleniyor..."</p>
</div>
}.into_any()
}
}}
}
}}
</Show>
</TabsContent>
<TabsContent value="trackers" class="h-full">