diff options
Diffstat (limited to 'webapp/src/main.rs')
-rw-r--r-- | webapp/src/main.rs | 6 |
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 } } /> }, |