From 2ac56e2e7ffdd99dc84d30840246747fa11d37ff Mon Sep 17 00:00:00 2001 From: traxys Date: Thu, 29 Jun 2023 13:16:03 +0200 Subject: [PATCH] app: Properly display recipe ratings --- app/src/recipe.rs | 47 ++++++++++++++++++++++------------------------- 1 file changed, 22 insertions(+), 25 deletions(-) diff --git a/app/src/recipe.rs b/app/src/recipe.rs index 5d161e5..e7b5610 100644 --- a/app/src/recipe.rs +++ b/app/src/recipe.rs @@ -28,9 +28,11 @@ struct RecipeRatingProps { fn RecipeRating(props: &RecipeRatingProps) -> Html { let rating = (props.rating + 1).min(3); html! { -
- { for (0..rating).map(|_| html!{