Changeset e007fcd for components/poker
- Timestamp:
- 07/16/22 21:31:18 (2 years ago)
- Branches:
- main
- Children:
- e903234
- Parents:
- 55701f0
- Location:
- components/poker
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
components/poker/PokerHeader.jsx
r55701f0 re007fcd 34 34 axios.get(`/api/poker?action=get_player_info_on_enter&session_id=${localStorage.CAESSINO_SESSION_ID}`).then(res => { 35 35 if (res.data?.success) { 36 dispatch(setPlayer({ 37 ...playerState.player, 38 displayName: res.data?.displayName, 39 username: res.data?.username, 40 session_id: res.data?.session_id, 41 credits: res.data?.credits, 42 })) 43 36 44 if (interval !== null) clearInterval(interval); 37 45 -
components/poker/sections/PickATable.jsx
r55701f0 re007fcd 32 32 33 33 function createATable() { 34 axios.get(`/api/poker?action=create_a_table&session_id=${localStorage.CAESSINO_SESSION_ID}&displayName=${playerState.player.displayName}&tableName=${styleState.poker.inputControls.tableName} `);34 axios.get(`/api/poker?action=create_a_table&session_id=${localStorage.CAESSINO_SESSION_ID}&displayName=${playerState.player.displayName}&tableName=${styleState.poker.inputControls.tableName}&username=${playerState.player.username}`); 35 35 } 36 36 37 37 function joinATable(e) { 38 axios.get(`/api/poker?action=join_a_table&session_id=${localStorage.CAESSINO_SESSION_ID}&tableId=${e.target?.dataset?.table}&displayName=${playerState.player.displayName} `);38 axios.get(`/api/poker?action=join_a_table&session_id=${localStorage.CAESSINO_SESSION_ID}&tableId=${e.target?.dataset?.table}&displayName=${playerState.player.displayName}&username=${playerState.player.username}`); 39 39 } 40 40
Note:
See TracChangeset
for help on using the changeset viewer.