diff --git a/examples/suspense/index.scss b/examples/suspense/index.scss index 5e3a5385e6a..22bc367b1de 100644 --- a/examples/suspense/index.scss +++ b/examples/suspense/index.scss @@ -10,10 +10,10 @@ html, body { .layout { height: 100vh; width: 100%; - display: flex; - flex-direction: column; - justify-content: center; + display: grid; + justify-items: center; align-items: center; + grid-template-columns: 1fr 1fr; } .content { @@ -69,3 +69,7 @@ button { color: rgb(100, 100, 100); } + +h2 { + text-align: center; +} diff --git a/examples/suspense/src/main.rs b/examples/suspense/src/main.rs index a51d99266f2..09b8d5e24f6 100644 --- a/examples/suspense/src/main.rs +++ b/examples/suspense/src/main.rs @@ -1,13 +1,19 @@ use web_sys::HtmlTextAreaElement; use yew::prelude::*; +mod struct_consumer; mod use_sleep; -use use_sleep::use_sleep; +pub use use_sleep::use_sleep; + +#[derive(Debug, PartialEq, Properties)] +struct PleaseWaitProps { + from: &'static str, +} #[function_component(PleaseWait)] -fn please_wait() -> Html { - html! {