@@ -3,7 +3,7 @@ import { BridgeDealFactory, TicTacToe } from "/imports/lib/bridge.js";
3
3
import { Local } from "boardgame.io/multiplayer" ;
4
4
import { useTracker } from "meteor/react-meteor-data" ;
5
5
import { Hand } from "../Hand" ;
6
- import { Bidding } from "../Bidding" ;
6
+ import { BiddingBox , BiddingTable } from "../Bidding" ;
7
7
import React from "react" ;
8
8
import {
9
9
playerIdToPosition ,
@@ -21,6 +21,7 @@ import { BOARD_STATES } from '/imports/constants/BoardStates.js';
21
21
const BridgeTable = function ( { G, ctx, playerID, moves, events } ) {
22
22
23
23
const playerPosition = playerIdToPosition ( playerID ) ;
24
+ //for tests
24
25
const isCurrenPlayerBidding =
25
26
ctx . phase === PHASE_BIDDING && playerID === ctx . currentPlayer ;
26
27
@@ -52,7 +53,9 @@ const BridgeTable = function ({ G, ctx, playerID, moves, events }) {
52
53
cardsHidden = { true }
53
54
/>
54
55
</ div >
55
- < div className = "column" > </ div >
56
+ < div className = "column" >
57
+ < BiddingTable bidding = { [ ...G . bidding ] } dealer = { G . dealer } />
58
+ </ div >
56
59
< div className = "column" >
57
60
< Hand
58
61
ctx = { ctx }
@@ -69,14 +72,14 @@ const BridgeTable = function ({ G, ctx, playerID, moves, events }) {
69
72
< div className = "column" >
70
73
< div >
71
74
{ isCurrenPlayerBidding ? (
72
- < Bidding
75
+ < BiddingBox
73
76
position = { playerPosition }
74
77
G = { G }
75
78
makeBid = { function ( bid ) {
76
79
moves . bid ( bid ) ;
77
80
} }
78
81
ctx = { ctx }
79
- > </ Bidding >
82
+ > </ BiddingBox >
80
83
) : (
81
84
""
82
85
) }
0 commit comments