diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2022-09-07 21:38:55 -0400 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2022-09-07 21:38:55 -0400 |
commit | 761e2b5c0526987b8a56c52b2b11e2ed99e37396 (patch) | |
tree | e7befdd4167990bc7761fb797191004e7ac13cf8 /webapp/src/components/hand.rs | |
parent | f92ca7acbf6998f8cd2cb6b7e1116fcbd29767e4 (diff) |
Start working on game layout
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 } } } |