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:
Peter Hanssens
2025-09-21 00:03:54 +10:00
parent e47358a793
commit c1e0a099f1

View File

@@ -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>
};
}