summaryrefslogtreecommitdiff
path: root/webapp/src/components
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2022-12-22 19:15:54 -0500
committerKjetil Orbekk <kj@orbekk.com>2022-12-22 19:15:54 -0500
commit93faa3894907508933a43173d829b15fd32cbc44 (patch)
tree60be90199b26c3c91ddb6a8d75a756aed5d25cc2 /webapp/src/components
parent58aa2e4764f90528270ae5b9a61de576260e5483 (diff)
Add server code to send the player view of a playing game
Diffstat (limited to 'webapp/src/components')
-rw-r--r--webapp/src/components/table.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/webapp/src/components/table.rs b/webapp/src/components/table.rs
index 794785f..78a5f91 100644
--- a/webapp/src/components/table.rs
+++ b/webapp/src/components/table.rs
@@ -88,13 +88,15 @@ pub fn online_table(props: &OnlineTableProps) -> Html {
let center = match &*table_state {
Some(GameStatePlayerView::Bidding(bidding)) =>
bidding_view(bidding, on_bid),
- Some(GameStatePlayerView::Playing(playing)) => todo!(),
+ Some(GameStatePlayerView::Playing(playing)) => html! {
+ {"Need to implement this"}
+ },
None => html! { <p>{"Loading table"}</p> },
};
html! {
<>
- <>{ format!("This is table {}", props.table.id) }</p>
+ <p>{ format!("This is table {}", props.table.id) }</p>
<button onclick={leave_table}>
{ "Leave table" }
</button>