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
|
Rev | Line | |
---|
[ace7865] | 1 | import React from 'react'
|
---|
| 2 |
|
---|
[b13f93b] | 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'
|
---|
[3a783f2] | 11 | import Pot from './sections/Pot'
|
---|
| 12 | import RaiseModal from './sections/RaiseModal'
|
---|
[b13f93b] | 13 |
|
---|
[ace7865] | 14 | const PokerSections = () => {
|
---|
[b13f93b] | 15 | const playerState = useSelector(state => state.player);
|
---|
| 16 |
|
---|
[189cd8f] | 17 | if (playerState.pokerGame?.player?.table?.length > 0) {
|
---|
[b13f93b] | 18 | return (
|
---|
| 19 | <>
|
---|
| 20 | <Messages/>
|
---|
| 21 |
|
---|
| 22 | <Chairs/>
|
---|
| 23 |
|
---|
| 24 | <Cards/>
|
---|
| 25 |
|
---|
| 26 | <CardsInTheMiddle/>
|
---|
| 27 |
|
---|
[3a783f2] | 28 | <Pot/>
|
---|
| 29 |
|
---|
[b13f93b] | 30 | <PlayButtons/>
|
---|
[3a783f2] | 31 |
|
---|
| 32 | <RaiseModal/>
|
---|
[b13f93b] | 33 | </>
|
---|
| 34 | )
|
---|
| 35 | }
|
---|
| 36 | else {
|
---|
| 37 | return (
|
---|
| 38 | <>
|
---|
| 39 | <PickATable/>
|
---|
| 40 | </>
|
---|
| 41 | )
|
---|
| 42 | }
|
---|
[ace7865] | 43 | }
|
---|
| 44 |
|
---|
| 45 | export default PokerSections |
---|
Note:
See
TracBrowser
for help on using the repository browser.