summaryrefslogtreecommitdiff
path: root/webapp/src/main.rs
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2022-12-22 13:31:24 -0500
committerKjetil Orbekk <kj@orbekk.com>2022-12-22 13:39:11 -0500
commit22452073063b9211aa2aa38a1b1e2cf2e44cf133 (patch)
tree7988fed422b019a6ff5ba057d17f83082b05c440 /webapp/src/main.rs
parentc2145b91775be375779884a2a97365396923aba1 (diff)
Delete outdated `game` component
Diffstat (limited to 'webapp/src/main.rs')
-rw-r--r--webapp/src/main.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/webapp/src/main.rs b/webapp/src/main.rs
index f99dfe0..73531d5 100644
--- a/webapp/src/main.rs
+++ b/webapp/src/main.rs
@@ -4,7 +4,7 @@ use yew::prelude::*;
use yew_router::prelude::*;
pub mod components;
pub mod utils;
-use components::{AppContextProvider, ErrorInfo, Game, OnlineTable};
+use components::{AppContextProvider, ErrorInfo, OnlineTable};
extern crate wee_alloc;
pub mod routing;
use crate::{components::use_app_context, routing::Route};
@@ -60,7 +60,6 @@ fn home() -> Html {
html! {
<ul>
<li>{ user }</li>
- <li><Link<Route> to={Route::Playground}>{ "Playground" }</Link<Route>></li>
<li><button onclick={create_table}>{ "Create table" }</button></li>
</ul>
}
@@ -79,9 +78,6 @@ fn header() -> Html {
fn switch(routes: &Route) -> Html {
let main = match routes {
Route::Home => html! { <Home/> },
- Route::Playground => html! {
- <div class="game-layout"><Game /></div>
- },
Route::Table { id } => html! {
<OnlineTable table={ protocol::Table { id: *id } } />
},