diff --git a/src/leptos/angel.rs b/src/leptos/angel.rs new file mode 100644 index 0000000..ae56667 --- /dev/null +++ b/src/leptos/angel.rs @@ -0,0 +1,8 @@ +use leptos::prelude::*; + +#[component] +pub fn Angel() -> impl IntoView { + view! { +

Hi

+ } +} diff --git a/src/leptos/cafe.rs b/src/leptos/cafe.rs index db7a184..38c3e78 100644 --- a/src/leptos/cafe.rs +++ b/src/leptos/cafe.rs @@ -13,6 +13,7 @@ pub fn Cafe() -> impl IntoView { + } } @@ -51,18 +52,6 @@ fn Reception(acc: ReadSignal) -> impl IntoView { } } -#[component] -fn StoreLogo(store: Store) -> impl IntoView { - view! { - ::into(&store)) - class="logo" - // FIXME: Implement fmt::Display for Store - alt=format!("{:?}", store) - /> - } -} - #[component] fn SwapButton(store: Store) -> impl IntoView { view! { @@ -74,7 +63,7 @@ fn SwapButton(store: Store) -> impl IntoView { } class="column" > - + } } @@ -89,7 +78,7 @@ fn StoreInput(store: Store) -> impl IntoView { impl IntoView { + view! { + ::into(&store)) + class="logo" + // FIXME: Implement fmt::Display for Store + alt=format!("{:?}", store) + /> + } +}