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' ) ) ;
@@ -189,9 +191,7 @@ export const RegistrationPage = () => (
189191export const StairwayGamePage = ( ) => (
190192 < Provider store = { store } >
191193 < PersistGate loading = { null } persistor = { persistor } >
192- < Suspense >
193- { /* <Stairway /> */ }
194- </ Suspense >
194+ < Suspense > { /* <Stairway /> */ } </ Suspense >
195195 </ PersistGate >
196196 </ Provider >
197197) ;
@@ -200,9 +200,7 @@ export const TournamentPage = () => (
200200 < Provider store = { store } >
201201 < PersistGate loading = { null } persistor = { persistor } >
202202 < Suspense >
203- < Tournament
204- waitingRoomMachine = { waitingRoomMachine }
205- />
203+ < Tournament waitingRoomMachine = { waitingRoomMachine } />
206204 </ Suspense >
207205 </ PersistGate >
208206 </ Provider >
@@ -211,9 +209,7 @@ export const TournamentAdminPage = () => (
211209 < Provider store = { store } >
212210 < PersistGate loading = { null } persistor = { persistor } >
213211 < Suspense >
214- < TournamentAdmin
215- waitingRoomMachine = { waitingRoomMachine }
216- />
212+ < TournamentAdmin waitingRoomMachine = { waitingRoomMachine } />
217213 </ Suspense >
218214 </ PersistGate >
219215 </ Provider >
0 commit comments