summaryrefslogtreecommitdiff
path: root/webapp/src/components/show_bid.rs
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2022-09-10 14:49:38 -0400
committerKjetil Orbekk <kj@orbekk.com>2022-09-10 14:49:38 -0400
commit55a24a3b7d1b3fcc07f0bb8e53b00abf23e651b3 (patch)
treee85911ccc1eca8c820d7b4f40c9e3b36aa121034 /webapp/src/components/show_bid.rs
parent5ad23c12d718e5b4b6f9076ef2d29de5addd40fc (diff)
Add nav bar with context
Diffstat (limited to 'webapp/src/components/show_bid.rs')
-rw-r--r--webapp/src/components/show_bid.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/webapp/src/components/show_bid.rs b/webapp/src/components/show_bid.rs
new file mode 100644
index 0000000..b0c917e
--- /dev/null
+++ b/webapp/src/components/show_bid.rs
@@ -0,0 +1,18 @@
+use crate::bridge_engine::{Bid, Bidding, Contract};
+use crate::components::bid_css_class;
+use yew::prelude::*;
+
+#[derive(PartialEq, Properties, Clone)]
+pub struct ShowBidProps {
+ pub contract: Contract,
+ pub bidding: Bidding,
+}
+
+#[function_component(ShowBid)]
+pub fn show_bid(props: &ShowBidProps) -> Html {
+html! {
+ <>
+ <p>{ format!("{}", props.contract) }</p>
+ </>
+}
+}