source: components/poker/PokerSections.jsx@ aac3b2b

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

Code cleanings

  • Property mode set to 100644
File size: 894 bytes
Line 
1import React from 'react'
2
3import Cards from './sections/Cards'
4import CardsInTheMiddle from './sections/CardsInTheMiddle'
5import Chairs from './sections/Chairs'
6import Messages from './sections/Messages'
7import PlayButtons from './sections/PlayButtons'
8import PickATable from './sections/PickATable'
9
10import { useSelector, useDispatch } from 'react-redux'
11import Pot from './sections/Pot'
12import RaiseModal from './sections/RaiseModal'
13
14const 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
45export default PokerSections
Note: See TracBrowser for help on using the repository browser.