fix: resolve type inference error in toolbar callback
Some checks failed
Build MIPS Binary / build (push) Failing after 40s
Some checks failed
Build MIPS Binary / build (push) Failing after 40s
This commit is contained in:
@@ -49,7 +49,7 @@ pub fn Protected(children: Children) -> impl IntoView {
|
|||||||
// İçerik Alanı
|
// İçerik Alanı
|
||||||
<SidenavInset class="flex flex-col h-screen overflow-hidden">
|
<SidenavInset class="flex flex-col h-screen overflow-hidden">
|
||||||
// Toolbar (Üst Bar)
|
// 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
|
// Ana İçerik
|
||||||
<main class="flex-1 overflow-y-auto relative bg-background flex flex-col">
|
<main class="flex-1 overflow-y-auto relative bg-background flex flex-col">
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ use crate::components::layout::sidebar::Sidebar;
|
|||||||
|
|
||||||
#[component]
|
#[component]
|
||||||
pub fn Toolbar(
|
pub fn Toolbar(
|
||||||
#[prop(into)] on_toggle_sidebar: Callback<()>,
|
on_toggle_sidebar: Callback<()>,
|
||||||
) -> impl IntoView {
|
) -> impl IntoView {
|
||||||
view! {
|
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);">
|
<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);">
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ mod components {
|
|||||||
clx! {SheetFooter, footer, "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end"}
|
clx! {SheetFooter, footer, "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end"}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub use components::*;
|
// pub use components::*;
|
||||||
|
|
||||||
/* ========================================================== */
|
/* ========================================================== */
|
||||||
/* ✨ CONTEXT ✨ */
|
/* ✨ CONTEXT ✨ */
|
||||||
|
|||||||
Reference in New Issue
Block a user