mirror of
https://github.com/cloud-shuttle/leptos-shadcn-ui.git
synced 2025-12-22 22:00:00 +00:00
fix: Fix callback handling in menubar tdd_tests
- Remove Some() wrapper from callback props - Fix compilation errors in menubar component - All components now compile successfully
This commit is contained in:
@@ -440,8 +440,8 @@ mod tdd_tests {
|
||||
let callback2 = Callback::new(move |_| {});
|
||||
let _menubar_view = view! {
|
||||
<div>
|
||||
<Menubar on_click=Some(callback1)>"Menubar 1"</Menubar>
|
||||
<Menubar on_click=Some(callback2)>"Menubar 2"</Menubar>
|
||||
<Menubar on_click=callback1>"Menubar 1"</Menubar>
|
||||
<Menubar on_click=callback2>"Menubar 2"</Menubar>
|
||||
</div>
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user