source: components/poker/PokerSections.jsx@ 433e0c5

main
Last change on this file since 433e0c5 was 433e0c5, checked in by anastasovv <simon@…>, 2 years ago

Added complaints, managing credits, and lost connection screens

  • Property mode set to 100644
File size: 824 bytes
RevLine 
[ace7865]1import React from 'react'
2
[b13f93b]3import CardsInTheMiddle from './sections/CardsInTheMiddle'
4import Chairs from './sections/Chairs'
5import Messages from './sections/Messages'
6import PlayButtons from './sections/PlayButtons'
7import PickATable from './sections/PickATable'
8
[433e0c5]9import { useSelector } from 'react-redux'
[3a783f2]10import Pot from './sections/Pot'
11import RaiseModal from './sections/RaiseModal'
[b13f93b]12
[ace7865]13const PokerSections = () => {
[b13f93b]14 const playerState = useSelector(state => state.player);
15
[189cd8f]16 if (playerState.pokerGame?.player?.table?.length > 0) {
[b13f93b]17 return (
18 <>
19 <Messages/>
20
21 <Chairs/>
22
23 <CardsInTheMiddle/>
24
[3a783f2]25 <Pot/>
26
[b13f93b]27 <PlayButtons/>
[3a783f2]28
29 <RaiseModal/>
[b13f93b]30 </>
31 )
32 }
33 else {
34 return (
35 <>
36 <PickATable/>
37 </>
38 )
39 }
[ace7865]40}
41
42export default PokerSections
Note: See TracBrowser for help on using the repository browser.