Changeset 22367db for components/poker
- Timestamp:
- 07/19/22 19:38:51 (2 years ago)
- Branches:
- main
- Children:
- 41d3f60
- Parents:
- faff334
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
components/poker/PokerHeader.jsx
rfaff334 r22367db 1 /* eslint-disable @next/next/no-html-link-for-pages */ 1 2 import React from 'react' 2 3 … … 49 50 dispatch(setPokerGame(newRes.data?.pokerGame)) 50 51 51 if (newRes.data?.pokerGame?.player?.credits !== playerState.player.credits && newRes.data?.pokerGame?.player?.credits > 0) {52 if (newRes.data?.pokerGame?.player?.credits !== playerState.player.credits && newRes.data?.pokerGame?.player?.credits >= 0) { 52 53 dispatch(setPlayer({ 53 54 ...playerState.player, … … 110 111 <header className="header"> 111 112 <div style={{display: 'flex', alignItems: 'center'}}> 112 < Link href="/" passHref>113 <a href="/"> 113 114 <h2> 114 115 <AiOutlineArrowLeft /> 115 116 </h2> 116 </ Link>117 </a> 117 118 { playerState.pokerGame?.player?.table?.length > 0 && <button style={{marginBottom: '4px', marginLeft: '32px', fontSize: '16px'}} className="tertiaryButton" onClick={() => leaveTable()}>Leave Table</button> } 118 119 </div>
Note:
See TracChangeset
for help on using the changeset viewer.