diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2022-12-26 23:11:11 -0500 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2022-12-26 23:11:11 -0500 |
commit | 3418ebf4db2375e0dfe2343da57d674e1f4fd57f (patch) | |
tree | 5ab6cf8d52afb9035c49ddf03b748bd8923270cc /webapp/src/components | |
parent | 3cac865e0bf1e5d7b6a5b37ff64fa08e66880eb8 (diff) |
Add table navigation bar
Diffstat (limited to 'webapp/src/components')
-rw-r--r-- | webapp/src/components/table.rs | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/webapp/src/components/table.rs b/webapp/src/components/table.rs index 403ee8d..bd49b10 100644 --- a/webapp/src/components/table.rs +++ b/webapp/src/components/table.rs @@ -87,12 +87,18 @@ impl OnlineTableInner { html! { <> <div class="game-layout"> + <div class="navbar"> + <ul> + <li>{format!("This is table {}", ctx.props().table.id)}</li> + <li> + <button onclick={leave_table}> + { "Leave table" } + </button> + </li> + </ul> + </div> {center} </div> - <p>{format!("This is table {}", ctx.props().table.id)}</p> - <button onclick={leave_table}> - { "Leave table" } - </button> </> } } |