summaryrefslogtreecommitdiff
path: root/webapp/src/main.rs
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2022-11-24 14:43:42 -0500
committerKjetil Orbekk <kj@orbekk.com>2022-11-24 14:43:42 -0500
commitb5cd23ae50834eaf8a8f5504bb83d29549eaf82b (patch)
tree8dcd18db0aca072f42f83321241f5ab8b175e036 /webapp/src/main.rs
parent810d2de21f4c47d5f263678c274ae915702d247f (diff)
Separate Table controller and view; display player hand from server
Diffstat (limited to 'webapp/src/main.rs')
-rw-r--r--webapp/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/src/main.rs b/webapp/src/main.rs
index f9a3f01..72d0d29 100644
--- a/webapp/src/main.rs
+++ b/webapp/src/main.rs
@@ -3,7 +3,7 @@ use log::{debug, error, info, warn};
use yew::prelude::*;
use yew_router::prelude::*;
pub mod components;
-use components::{AppContextProvider, ErrorInfo, Game, Table};
+use components::{AppContextProvider, ErrorInfo, Game, OnlineTable};
extern crate wee_alloc;
pub mod routing;
use crate::{components::use_app_context, routing::Route};
@@ -82,7 +82,7 @@ fn switch(routes: &Route) -> Html {
<div class="game-layout"><Game /></div>
},
Route::Table { id } => html! {
- <Table table={ protocol::Table { id: *id } } />
+ <OnlineTable table={ protocol::Table { id: *id } } />
},
};