diff --git a/client/src/components/cards.rs b/client/src/components/cards.rs index 7aaf1d3..266dd6d 100644 --- a/client/src/components/cards.rs +++ b/client/src/components/cards.rs @@ -2,11 +2,11 @@ use leptos::*; use lib::WhiteCardMeta; #[component] -pub fn BlackCard(card_data: ReadSignal<(String, u8)>) -> impl IntoView { +pub fn BlackCard(card_data: (String, u8)) -> impl IntoView { view! {
{move || card_data().0}
-Pick: {move || card_data().1}
+{card_data.0}
+Pick: {card_data.1}
Name: {move || game_name()}
-Host: {move || game_host()}
-Czar: {move || game_czar()}
-White Deck: {move || game_white_count().to_string()}
-White Discard: {move || game_white_discard_count().to_string()}
-Black Deck: {move || game_black_count().to_string()}
- - -Players:
-Name | -Score | -
---|---|
{&player.name} | -- {&player.score.to_string()} - | -
Name | +Score | +
---|---|
{&player.name} | +{&player.score.to_string()} | +