source: redux/reducers/adminInformationSlice.js@ 41d3f60

main
Last change on this file since 41d3f60 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
Line 
1import { createSlice } from '@reduxjs/toolkit';
2
3const initialState = {
4 adminInformation: {
5 complaints: [],
6 answeringComplaintIndex: -1,
7 answerForComplaint: '',
8 liveGames: {
9 blackjack: {
10 rooms: [],
11 },
12 roulette: {
13 players: [],
14 },
15 poker: {
16 tables: [],
17 },
18 },
19 },
20}
21
22export const adminInformationSlice = createSlice({
23 name: 'adminInformation',
24 initialState,
25 reducers: {
26 setAdminInformation: (state, action) => {
27 state.adminInformation = action.payload;
28 },
29 }
30})
31
32export const { setAdminInformation } = adminInformationSlice.actions
33
34export default adminInformationSlice.reducer
Note: See TracBrowser for help on using the repository browser.