change empty outlet to placeholder instead of div

This commit is contained in:
Adrian Wannenmacher 2022-12-13 16:01:53 +01:00
parent af6362ce3e
commit 83f6984b0a
No known key found for this signature in database
GPG key ID: 19D986ECB1E492D5

View file

@ -108,8 +108,8 @@ pub fn Outlet(cx: Scope<OutletProps>) -> Element {
cx.render(match content { cx.render(match content {
Some(content) => { Some(content) => {
let X = content.0; let X = content.0;
rsx! { X { } } rsx!(X {})
} }
None => rsx! { div { } }, None => rsx!(()),
}) })
} }