diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-10-23 02:24:29 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-10-23 02:24:29 +0200 |
| commit | 427ce16023613536b8176e6dee7c1580a5980c97 (patch) | |
| tree | ab39dffcf89eacbcb19a251d540c46d9ee5b38d0 /src/components/recipies.rs | |
| parent | feat(buy): Provide basic buy interface (diff) | |
| download | web-client-427ce16023613536b8176e6dee7c1580a5980c97.zip | |
feat(treewide): Make usage more intuitive
Diffstat (limited to 'src/components/recipies.rs')
| -rw-r--r-- | src/components/recipies.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/components/recipies.rs b/src/components/recipies.rs index 1bd3a0d..f7903e4 100644 --- a/src/components/recipies.rs +++ b/src/components/recipies.rs @@ -1,11 +1,17 @@ use leptos::{IntoView, component, prelude::ElementChild, view}; -use crate::components::container::Container; +use crate::components::{container::Container, icon_p::IconP}; #[component] pub fn Recipies() -> impl IntoView { view! { - <Container header="Recipies" buttons=vec![("Mealplan", "mealplan")]> + <Container + header="Recipies" + buttons=vec![ + (view! { <IconP icon=icondata_io::IoFastFood text="Recipies" /> }, "recipies"), + (view! { <IconP icon=icondata_io::IoCalendarSharp text="Mealplan" /> }, "mealplan"), + ] + > <p>"You have 0 recipies."</p> </Container> } |
