fix: resolve type inference errors in app.rs and silence unused variable warnings in context menu
Some checks failed
Build MIPS Binary / build (push) Failing after 31s
Some checks failed
Build MIPS Binary / build (push) Failing after 31s
This commit is contained in:
@@ -100,7 +100,7 @@ fn InnerApp() -> impl IntoView {
|
||||
|
||||
view! {
|
||||
<div class="relative w-full h-screen" style="height: 100dvh;">
|
||||
<Routes fallback=|| view! { <div class="p-4">"404 Not Found"</div> }>
|
||||
<Routes fallback=|| view! { <div class="p-4">"404 Not Found"</div> }.into_any()>
|
||||
<Route path=leptos_router::path!("/login") view=move || {
|
||||
let authenticated = authenticated_val();
|
||||
let setup_needed = needs_setup.0.get();
|
||||
@@ -115,7 +115,7 @@ fn InnerApp() -> impl IntoView {
|
||||
}
|
||||
});
|
||||
|
||||
view! { <Login /> }
|
||||
view! { <Login /> }.into_any()
|
||||
} />
|
||||
<Route path=leptos_router::path!("/setup") view=move || {
|
||||
Effect::new(move |_| {
|
||||
@@ -125,7 +125,7 @@ fn InnerApp() -> impl IntoView {
|
||||
}
|
||||
});
|
||||
|
||||
view! { <Setup /> }
|
||||
view! { <Setup /> }.into_any()
|
||||
} />
|
||||
|
||||
<Route path=leptos_router::path!("/") view=move || {
|
||||
@@ -162,7 +162,7 @@ fn InnerApp() -> impl IntoView {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
}.into_any()
|
||||
}>
|
||||
<Show when=move || authenticated_val() fallback=|| ()>
|
||||
<ProtectedLayout>
|
||||
@@ -174,7 +174,7 @@ fn InnerApp() -> impl IntoView {
|
||||
</ProtectedLayout>
|
||||
</Show>
|
||||
</Show>
|
||||
}
|
||||
}.into_any()
|
||||
}/>
|
||||
|
||||
<Route path=leptos_router::path!("/settings") view=move || {
|
||||
@@ -188,13 +188,13 @@ fn InnerApp() -> impl IntoView {
|
||||
|
||||
view! {
|
||||
<Show when=move || !is_loading_val() fallback=|| ()>
|
||||
<Show when=move || authenticated_val() fallback=|| ()>
|
||||
<Show when=move || authenticated fallback=|| ()>
|
||||
<ProtectedLayout>
|
||||
<div class="p-4">"Settings Page (Coming Soon)"</div>
|
||||
</ProtectedLayout>
|
||||
</Show>
|
||||
</Show>
|
||||
}
|
||||
}.into_any()
|
||||
}/>
|
||||
</Routes>
|
||||
</div>
|
||||
|
||||
@@ -139,7 +139,7 @@ pub fn ContextMenuTrigger(
|
||||
class=trigger_class
|
||||
data-name="ContextMenuTrigger"
|
||||
data-context-trigger=ctx.target_id
|
||||
on:contextmenu=move |e: web_sys::MouseEvent| {
|
||||
on:contextmenu=move |_e: web_sys::MouseEvent| {
|
||||
if let Some(cb) = on_open {
|
||||
cb.run(());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user