diff options
Diffstat (limited to 'webapp/src/components/hand.rs')
-rw-r--r-- | webapp/src/components/hand.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/webapp/src/components/hand.rs b/webapp/src/components/hand.rs index 1a2727c..85b4dd2 100644 --- a/webapp/src/components/hand.rs +++ b/webapp/src/components/hand.rs @@ -3,20 +3,17 @@ use crate::components::card::{Card, CardProps}; #[function_component(Hand)] pub fn hand(props: &HandProps) -> Html { - let cards: Html = props + let cards = props .cards .iter() .map(|c| { html! { <Card ..c.clone() /> } - }) - .collect(); + }); html! { - <div class="hand"> - { cards } - </div> + { for cards } } } |