feat: export use_window
This commit is contained in:
1 parent
f1fe8f1d2a
commit
bead035969
2 files changed
+2
-1
No files matched your search
@@ -7,7 +7,7 @@ fn main() {
|
||||
}
|
||||
|
||||
fn app(cx: Scope) -> Element {
|
||||
let window = dioxus::desktop::desktop_context::use_window(&cx);
|
||||
let window = dioxus::desktop::use_window(&cx);
|
||||
|
||||
cx.render(rsx!(
|
||||
link { href:"https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css", rel:"stylesheet" }
|
||||
|
||||
@@ -56,6 +56,7 @@ pub mod escape;
|
||||
pub mod events;
|
||||
|
||||
use cfg::DesktopConfig;
|
||||
pub use desktop_context::use_window;
|
||||
use desktop_context::DesktopContext;
|
||||
use dioxus_core::*;
|
||||
use std::{
|
||||
|
||||
Reference in new issue
Block a user