main
Last change
on this file since e007fcd 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
|
Line | |
---|
1 | import React from 'react'
|
---|
2 |
|
---|
3 | import CardsInTheMiddle from './sections/CardsInTheMiddle'
|
---|
4 | import Chairs from './sections/Chairs'
|
---|
5 | import Messages from './sections/Messages'
|
---|
6 | import PlayButtons from './sections/PlayButtons'
|
---|
7 | import PickATable from './sections/PickATable'
|
---|
8 |
|
---|
9 | import { useSelector } from 'react-redux'
|
---|
10 | import Pot from './sections/Pot'
|
---|
11 | import RaiseModal from './sections/RaiseModal'
|
---|
12 |
|
---|
13 | const PokerSections = () => {
|
---|
14 | const playerState = useSelector(state => state.player);
|
---|
15 |
|
---|
16 | if (playerState.pokerGame?.player?.table?.length > 0) {
|
---|
17 | return (
|
---|
18 | <>
|
---|
19 | <Messages/>
|
---|
20 |
|
---|
21 | <Chairs/>
|
---|
22 |
|
---|
23 | <CardsInTheMiddle/>
|
---|
24 |
|
---|
25 | <Pot/>
|
---|
26 |
|
---|
27 | <PlayButtons/>
|
---|
28 |
|
---|
29 | <RaiseModal/>
|
---|
30 | </>
|
---|
31 | )
|
---|
32 | }
|
---|
33 | else {
|
---|
34 | return (
|
---|
35 | <>
|
---|
36 | <PickATable/>
|
---|
37 | </>
|
---|
38 | )
|
---|
39 | }
|
---|
40 | }
|
---|
41 |
|
---|
42 | export default PokerSections |
---|
Note:
See
TracBrowser
for help on using the repository browser.