Make router work on web

This commit is contained in:
Jonathan Kelley committed 2024-01-19 16:36:40 -08:00
1 parent b0038bb24b
commit 85c7c22619
51 files changed
+110 -98

No files matched your search

+2 -2
View File
@@ -21,7 +21,7 @@ fn app() -> Element {
let open_compose_window = move |_evt: MouseEvent| {
let tx = handle.tx();
dioxus_desktop::window().new_window(
dioxus::desktop::window().new_window(
VirtualDom::new_with_props(compose, Rc::new(move |s| tx.unbounded_send(s).unwrap())),
Default::default(),
);
@@ -51,7 +51,7 @@ fn compose(send: Rc<dyn Fn(String)>) -> Element {
button {
onclick: move |_| {
send(user_input.cloned());
dioxus_desktop::window().close();
dioxus::desktop::window().close();
},
"Click to send"
}