main
Last change
on this file was faff334, checked in by anastasovv <simon@…>, 2 years ago |
Ability for admin to watch live games and for user to see games history
|
-
Property mode
set to
100644
|
File size:
783 bytes
|
Rev | Line | |
---|
[e903234] | 1 | import { createSlice } from '@reduxjs/toolkit';
|
---|
| 2 |
|
---|
| 3 | const initialState = {
|
---|
| 4 | adminInformation: {
|
---|
| 5 | complaints: [],
|
---|
| 6 | answeringComplaintIndex: -1,
|
---|
| 7 | answerForComplaint: '',
|
---|
| 8 | liveGames: {
|
---|
[faff334] | 9 | blackjack: {
|
---|
| 10 | rooms: [],
|
---|
| 11 | },
|
---|
| 12 | roulette: {
|
---|
| 13 | players: [],
|
---|
| 14 | },
|
---|
| 15 | poker: {
|
---|
| 16 | tables: [],
|
---|
| 17 | },
|
---|
[e903234] | 18 | },
|
---|
| 19 | },
|
---|
| 20 | }
|
---|
| 21 |
|
---|
| 22 | export const adminInformationSlice = createSlice({
|
---|
| 23 | name: 'adminInformation',
|
---|
| 24 | initialState,
|
---|
| 25 | reducers: {
|
---|
| 26 | setAdminInformation: (state, action) => {
|
---|
| 27 | state.adminInformation = action.payload;
|
---|
| 28 | },
|
---|
| 29 | }
|
---|
| 30 | })
|
---|
| 31 |
|
---|
| 32 | export const { setAdminInformation } = adminInformationSlice.actions
|
---|
| 33 |
|
---|
| 34 | export default adminInformationSlice.reducer |
---|
Note:
See
TracBrowser
for help on using the repository browser.