fix: no type

This commit is contained in:
Jonathan Kelley committed 2022-12-30 22:14:28 -05:00
1 parent e3a8e44a69
commit 4955cfc940
3 files changed
+36 -2

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
use dioxus::prelude::*;
use dioxus_desktop::{use_window, WindowBuilder};
fn main() {
dioxus_desktop::launch(app);
}
fn app(cx: Scope) -> Element {
let window = use_window(cx);
cx.render(rsx! {
div {
button {
onclick: move |_| {
let dom = VirtualDom::new(app);
window.new_window(dom, Default::default());
},
"Open overlay"
}
}
})
}
fn popup(cx: Scope) -> Element {
cx.render(rsx! {
div {
width: "200px",
height: "200px",
background: "white",
border: "1px solid black",
"This is a popup!"
}
})
}