Changeset 22367db for components/GamesHistory.jsx
- Timestamp:
- 07/19/22 19:38:51 (2 years ago)
- Branches:
- main
- Children:
- 41d3f60
- Parents:
- faff334
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
components/GamesHistory.jsx
rfaff334 r22367db 39 39 <h5><Calculations action="calculateHandValue" cards={room.playerCards}/></h5> 40 40 </div> 41 <p>Player {room .displayName} (${parseInt(room.initialBet) + parseInt(room.sideBet)})</p>41 <p>Player {room?.displayName} (${parseInt(room.initialBet) + parseInt(room.sideBet)})</p> 42 42 </div> 43 43 <div> 44 44 <div> 45 <h6><span>Outcome:</span><br/>{room.outcome}</h6> 46 <h6><span>Side Bet Outcome:</span><br/>{room.sideBetOutcome}</h6> 45 <h6><span>Played on:<br/>{room.finished}</span></h6> 46 { room?.outcome?.lenght > 0 && <h6><span>Outcome:</span><br/>{room.outcome}</h6> } 47 { room?.sideBetOutcome.lenght > 0 && <h6><span>Side Bet Outcome:</span><br/>{room.sideBetOutcome}</h6> } 47 48 </div> 48 49 </div> … … 65 66 <div key={`roulettegame${gameIdx}`}> 66 67 <h6> 68 <span>Played on: {game?.finished}</span><br/> 67 69 <span>Ball on number: </span>{game?.magicNumber} 68 70 <span>Winning bets: </span>{game?.winningBets?.join(", ")} … … 75 77 </div> 76 78 <div> 77 <h6><span>{player.name} ( ${player.betAmount})</span></h6>79 <h6><span>{player.name} (</span>${player.betAmount}<span>)</span></h6> 78 80 </div> 79 81 <div> … … 81 83 </div> 82 84 <div> 83 <h6><span>Outcome: {player.outcome}</span></h6>85 <h6><span>Outcome: </span>{player.outcome}</h6> 84 86 </div> 85 87 </div> … … 94 96 <div key={table.id} className="livePokerGame"> 95 97 <h6> 96 <span>Pot: </span>{table?.pot} 97 <span>Winners: </span>{table?.winners?.map(e=>e.displayName)?.join(", ")} 98 <span>Played on: {table?.finished}</span><br/> 99 <span>Pot: </span>${table?.pot} 100 <span>Winners: </span>{table?.winners?.map(e=>e?.displayName)?.join(", ")} 98 101 </h6> 99 102 <div className="cardsOnTable" style={{marginTop: '2rem'}}> … … 106 109 <div key={player.id} className="playerInLivePokerGame"> 107 110 <div> 108 <h6><span>Player {player .displayName} (${player.betAmount})</span></h6>111 <h6><span>Player {player?.displayName} (</span>${player.betAmount}<span>)</span></h6> 109 112 </div> 110 113 <div className="cards">
Note:
See TracChangeset
for help on using the changeset viewer.