fix compose example
This commit is contained in:
1 parent
4f654d61b7
commit
c41e3d96e7
1 file changed
+2
-5
+2
-5
@@ -26,7 +26,7 @@ fn app(cx: Scope) -> Element {
|
|||||||
button {
|
button {
|
||||||
onclick: move |_| {
|
onclick: move |_| {
|
||||||
let dom = VirtualDom::new_with_props(compose, ComposeProps { app_tx: tx.clone() });
|
let dom = VirtualDom::new_with_props(compose, ComposeProps { app_tx: tx.clone() });
|
||||||
window.new_window(dom, Default::default());
|
dioxus_desktop::window().new_window(dom, Default::default());
|
||||||
},
|
},
|
||||||
"Click to compose a new email"
|
"Click to compose a new email"
|
||||||
}
|
}
|
||||||
@@ -62,10 +62,7 @@ fn compose(cx: Scope<ComposeProps>) -> Element {
|
|||||||
"Click to send"
|
"Click to send"
|
||||||
}
|
}
|
||||||
|
|
||||||
input {
|
input { oninput: move |e| user_input.set(e.value.clone()), value: "{user_input}" }
|
||||||
oninput: move |e| user_input.set(e.value.clone()),
|
|
||||||
value: "{user_input}"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user