Ignore:
Timestamp:
07/15/22 14:45:30 (2 years ago)
Author:
anastasovv <simon@…>
Branches:
main
Children:
55701f0
Parents:
1df3fde
Message:

Added complaints, managing credits, and lost connection screens

File:
1 edited

Legend:

Unmodified
Added
Removed
  • components/Header.jsx

    r1df3fde r433e0c5  
    5454  }
    5555
     56  function complain() {
     57    dispatch(setStyle({
     58      ...styleState.style,
     59      displayComplainScreen: true,
     60    }))
     61  }
     62
    5663  function showStats() {
    5764    axios.get(`/api/postgre?action=get_stats&session_id=${localStorage.CAESSINO_SESSION_ID}`).then(res => {
     
    8794      ...styleState.style,
    8895      displayManageCreditsScreen: true,
     96      displayDepositModal: false,
     97      displayWithdrawModal: false,
    8998    }))
    9099  }
     
    144153              <>
    145154                <li onClick={() => {manageCredits()}}>Manage Credits</li>
    146                 <li onClick={() => {showStats()}}>Stats</li>
     155                <li onClick={() => {showStats()}}>Statistics</li>
     156                <li onClick={() => {complain()}}>Complain</li>
    147157                <li onClick={() => {logout()}}>Logout</li>
    148158              </>
Note: See TracChangeset for help on using the changeset viewer.