Changeset 22367db for components/poker


Ignore:
Timestamp:
07/19/22 19:38:51 (2 years ago)
Author:
anastasovv <simon@…>
Branches:
main
Children:
41d3f60
Parents:
faff334
Message:

Added authentication with google

File:
1 edited

Legend:

Unmodified
Added
Removed
  • components/poker/PokerHeader.jsx

    rfaff334 r22367db  
     1/* eslint-disable @next/next/no-html-link-for-pages */
    12import React from 'react'
    23
     
    4950                            dispatch(setPokerGame(newRes.data?.pokerGame))
    5051       
    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) {
    5253                                dispatch(setPlayer({
    5354                                    ...playerState.player,
     
    110111        <header className="header">
    111112            <div style={{display: 'flex', alignItems: 'center'}}>
    112                 <Link href="/" passHref>
     113                <a href="/">
    113114                    <h2>
    114115                        <AiOutlineArrowLeft />
    115116                    </h2>
    116                 </Link>
     117                </a>
    117118                { playerState.pokerGame?.player?.table?.length > 0 && <button style={{marginBottom: '4px', marginLeft: '32px', fontSize: '16px'}} className="tertiaryButton" onClick={() => leaveTable()}>Leave Table</button> }
    118119            </div>
Note: See TracChangeset for help on using the changeset viewer.