Changeset b13f93b for components/poker/PokerSections.jsx
- Timestamp:
- 07/03/22 22:59:15 (2 years ago)
- Branches:
- main
- Children:
- 3a783f2
- Parents:
- ace7865
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
components/poker/PokerSections.jsx
race7865 rb13f93b 1 1 import React from 'react' 2 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 3 12 const PokerSections = () => { 4 return ( 5 <div> 6 7 </div> 8 ) 13 const playerState = useSelector(state => state.player); 14 15 if (playerState.pokerGame.player.table.length > 0) { 16 return ( 17 <> 18 <Messages/> 19 20 <Chairs/> 21 22 <Cards/> 23 24 <CardsInTheMiddle/> 25 26 <PlayButtons/> 27 </> 28 ) 29 } 30 else { 31 return ( 32 <> 33 <PickATable/> 34 </> 35 ) 36 } 9 37 } 10 38
Note:
See TracChangeset
for help on using the changeset viewer.