summaryrefslogtreecommitdiff
path: root/webapp/src/main.rs
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2022-09-07 09:54:27 -0400
committerKjetil Orbekk <kj@orbekk.com>2022-09-07 09:54:27 -0400
commit865a3eb1066f5bb140a6ce603e1162460a336934 (patch)
tree6ce0959e53ab17dfdb109b6dd62c6a0033b0ae63 /webapp/src/main.rs
parentcab440c8a209ae92eba07d50f7b7127dadbd65c0 (diff)
Add interactive bidding component
Diffstat (limited to 'webapp/src/main.rs')
-rw-r--r--webapp/src/main.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/webapp/src/main.rs b/webapp/src/main.rs
index 8f94899..be02013 100644
--- a/webapp/src/main.rs
+++ b/webapp/src/main.rs
@@ -6,7 +6,7 @@ pub mod bridge_engine;
pub mod card;
pub mod components;
use bridge_engine::{Player, BiddingResult};
-use components::{BiddingTable, BiddingBox, Hand, HandProps};
+use components::{Bidding, Hand, HandProps};
extern crate wee_alloc;
// Use `wee_alloc` as the global allocator.
@@ -53,10 +53,7 @@ pub fn app() -> Html {
html! {
<>
- <p>{ "Bidding table" }</p>
- <BiddingTable bidding={ (*bidding_state).clone().bidding().clone() } />
- <p>{ "Bidding box" }</p>
- <BiddingBox current_bid={ (*bidding_state).clone().bidding().highest_bid() } />
+ <Bidding dealer={ Player::East } />
<p>{ "North" }</p>
<Hand ..(*north).clone() />
<p>{ "West" }</p>