main
Last change
on this file since 189cd8f was 189cd8f, checked in by anastasovv <simon@…>, 2 years ago |
Code cleanings
|
-
Property mode
set to
100644
|
File size:
894 bytes
|
Line | |
---|
1 | import React from 'react'
|
---|
2 |
|
---|
3 | import Cards from './sections/Cards'
|
---|
4 | import CardsInTheMiddle from './sections/CardsInTheMiddle'
|
---|
5 | import Chairs from './sections/Chairs'
|
---|
6 | import Messages from './sections/Messages'
|
---|
7 | import PlayButtons from './sections/PlayButtons'
|
---|
8 | import PickATable from './sections/PickATable'
|
---|
9 |
|
---|
10 | import { useSelector, useDispatch } from 'react-redux'
|
---|
11 | import Pot from './sections/Pot'
|
---|
12 | import RaiseModal from './sections/RaiseModal'
|
---|
13 |
|
---|
14 | const PokerSections = () => {
|
---|
15 | const playerState = useSelector(state => state.player);
|
---|
16 |
|
---|
17 | if (playerState.pokerGame?.player?.table?.length > 0) {
|
---|
18 | return (
|
---|
19 | <>
|
---|
20 | <Messages/>
|
---|
21 |
|
---|
22 | <Chairs/>
|
---|
23 |
|
---|
24 | <Cards/>
|
---|
25 |
|
---|
26 | <CardsInTheMiddle/>
|
---|
27 |
|
---|
28 | <Pot/>
|
---|
29 |
|
---|
30 | <PlayButtons/>
|
---|
31 |
|
---|
32 | <RaiseModal/>
|
---|
33 | </>
|
---|
34 | )
|
---|
35 | }
|
---|
36 | else {
|
---|
37 | return (
|
---|
38 | <>
|
---|
39 | <PickATable/>
|
---|
40 | </>
|
---|
41 | )
|
---|
42 | }
|
---|
43 | }
|
---|
44 |
|
---|
45 | export default PokerSections |
---|
Note:
See
TracBrowser
for help on using the repository browser.