fix: resolve type inference error in toolbar callback
Some checks failed
Build MIPS Binary / build (push) Failing after 40s

This commit is contained in:
spinline
2026-02-14 02:09:12 +03:00
parent 9394a56e7d
commit 670c5a653b
3 changed files with 3 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ pub fn Protected(children: Children) -> impl IntoView {
// İçerik Alanı
<SidenavInset class="flex flex-col h-screen overflow-hidden">
// Toolbar (Üst Bar)
<Toolbar on_toggle_sidebar=move |_| set_collapsed.update(|c| *c = !*c) />
<Toolbar on_toggle_sidebar=Callback::new(move |_| set_collapsed.update(|c| *c = !*c)) />
// Ana İçerik
<main class="flex-1 overflow-y-auto relative bg-background flex flex-col">

View File

@@ -8,7 +8,7 @@ use crate::components::layout::sidebar::Sidebar;
#[component]
pub fn Toolbar(
#[prop(into)] on_toggle_sidebar: Callback<()>,
on_toggle_sidebar: Callback<()>,
) -> impl IntoView {
view! {
<div class="flex min-h-14 h-auto items-center border-b border-border bg-background px-4" style="padding-top: env(safe-area-inset-top);">

View File

@@ -16,7 +16,7 @@ mod components {
clx! {SheetFooter, footer, "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end"}
}
pub use components::*;
// pub use components::*;
/* ========================================================== */
/* ✨ CONTEXT ✨ */