11import React , { Suspense } from 'react' ;
22
33import NiceModal from '@ebay/nice-modal-react' ;
4- import {
5- configureStore ,
6- combineReducers ,
7- } from '@reduxjs/toolkit' ;
4+ import { configureStore , combineReducers } from '@reduxjs/toolkit' ;
85import { Provider } from 'react-redux' ;
96import { persistStore , persistReducer , PERSIST } from 'redux-persist' ;
107import { PersistGate } from 'redux-persist/integration/react' ;
@@ -29,7 +26,6 @@ const { gameUI: gameUIReducer, ...otherReducers } = reducers;
2926const gameUIPersistWhitelist = [
3027 'audioMuted' ,
3128 'videoMuted' ,
32- 'showVideoConferencePanel' ,
3329 'editorMode' ,
3430 'editorTheme' ,
3531 'streamMode' ,
@@ -55,14 +51,18 @@ const rollbarRedux = rollbarMiddleware(rollbar);
5551const store = configureStore ( {
5652 reducer : rootReducer ,
5753 middleware : getDefaultMiddleware => getDefaultMiddleware ( {
58- serializableCheck : { ignoredActions : [ 'ERROR' , PERSIST ] } ,
59- } ) . concat ( rollbarRedux ) ,
54+ serializableCheck : { ignoredActions : [ 'ERROR' , PERSIST ] } ,
55+ } ) . concat ( rollbarRedux ) ,
6056} ) ;
6157
6258const persistor = persistStore ( store ) ;
6359
64- const OnlineContainer = React . lazy ( ( ) => import ( './components/OnlineContainer' ) ) ;
65- const InvitesContainer = React . lazy ( ( ) => import ( './components/InvitesContainer' ) ) ;
60+ const OnlineContainer = React . lazy (
61+ ( ) => import ( './components/OnlineContainer' ) ,
62+ ) ;
63+ const InvitesContainer = React . lazy (
64+ ( ) => import ( './components/InvitesContainer' ) ,
65+ ) ;
6666const RoomWidget = React . lazy ( ( ) => import ( './pages/RoomWidget' ) ) ;
6767const LobbyWidget = React . lazy ( ( ) => import ( './pages/lobby' ) ) ;
6868const RatingList = React . lazy ( ( ) => import ( './pages/rating' ) ) ;
@@ -71,7 +71,9 @@ const UserSettings = React.lazy(() => import('./pages/settings'));
7171const UserProfile = React . lazy ( ( ) => import ( './pages/profile' ) ) ;
7272const Registration = React . lazy ( ( ) => import ( './pages/registration' ) ) ;
7373const Tournament = React . lazy ( ( ) => import ( './pages/tournament' ) ) ;
74- const TournamentAdmin = React . lazy ( ( ) => import ( './pages/tournament/TournamentAdminWidget' ) ) ;
74+ const TournamentAdmin = React . lazy (
75+ ( ) => import ( './pages/tournament/TournamentAdminWidget' ) ,
76+ ) ;
7577const Stream = React . lazy ( ( ) => import ( './pages/stream/StreamWidget' ) ) ;
7678const EventWidget = React . lazy ( ( ) => import ( './pages/event' ) ) ;
7779const TournamentPlayer = React . lazy ( ( ) => import ( './pages/tournamentPlayer' ) ) ;
@@ -187,9 +189,7 @@ export const RegistrationPage = () => (
187189export const StairwayGamePage = ( ) => (
188190 < Provider store = { store } >
189191 < PersistGate loading = { null } persistor = { persistor } >
190- < Suspense >
191- { /* <Stairway /> */ }
192- </ Suspense >
192+ < Suspense > { /* <Stairway /> */ } </ Suspense >
193193 </ PersistGate >
194194 </ Provider >
195195) ;
@@ -198,9 +198,7 @@ export const TournamentPage = () => (
198198 < Provider store = { store } >
199199 < PersistGate loading = { null } persistor = { persistor } >
200200 < Suspense >
201- < Tournament
202- waitingRoomMachine = { waitingRoomMachine }
203- />
201+ < Tournament waitingRoomMachine = { waitingRoomMachine } />
204202 </ Suspense >
205203 </ PersistGate >
206204 </ Provider >
@@ -209,9 +207,7 @@ export const TournamentAdminPage = () => (
209207 < Provider store = { store } >
210208 < PersistGate loading = { null } persistor = { persistor } >
211209 < Suspense >
212- < TournamentAdmin
213- waitingRoomMachine = { waitingRoomMachine }
214- />
210+ < TournamentAdmin waitingRoomMachine = { waitingRoomMachine } />
215211 </ Suspense >
216212 </ PersistGate >
217213 </ Provider >
0 commit comments