source: components/poker/PokerSections.jsx@ e9f11ac

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

Code cleanings

  • Property mode set to 100644
File size: 894 bytes
RevLine 
[ace7865]1import React from 'react'
2
[b13f93b]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'
[3a783f2]11import Pot from './sections/Pot'
12import RaiseModal from './sections/RaiseModal'
[b13f93b]13
[ace7865]14const 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
45export default PokerSections
Note: See TracBrowser for help on using the repository browser.