clenanup unused

This commit is contained in:
cv
2021-04-27 23:58:39 +02:00
parent 484c9929b2
commit c3b2c7abc8
6 changed files with 18 additions and 59 deletions
+15 -13
View File
@@ -1,5 +1,5 @@
import { lazy, Suspense } from 'react';
import { Route } from 'react-router-dom';
import { Route, Switch } from 'react-router-dom';
import './App.css';
import { QueryClient, QueryClientProvider } from 'react-query';
import SocketProvider from './app/context/socketContext';
@@ -16,9 +16,7 @@ const PresenterSimple = lazy(() =>
const StageManager = lazy(() =>
import('./features/viewers/backstage/StageManager')
);
const Public = lazy(() =>
import('./features/viewers/foh/Public')
);
const Public = lazy(() => import('./features/viewers/foh/Public'));
const Lower = lazy(() => import('./features/viewers/production/Lower'));
const Pip = lazy(() => import('./features/viewers/production/Pip'));
@@ -42,15 +40,19 @@ function App() {
<QueryClientProvider client={queryClient}>
<div className='App'>
<Suspense fallback={<div>Loading...</div>}>
<Route exact path='/' component={SSpeaker} />
<Route exact path='/sm' component={SStageManager} />
<Route exact path='/speaker' component={SSpeaker} />
<Route exact path='/speakersimple' component={SSpeakerSimple} />
<Route exact path='/editor' component={Editor} />
<Route path='/public' component={SPublic} />
<Route path='/lower' component={SLowerThird} />
{/* <ReactQueryDevtools initialIsOpen={false} /> */}
<Route path='/pip' component={SPip} />
<Switch>
<Route exact path='/' component={SSpeaker} />
<Route exact path='/sm' component={SStageManager} />
<Route exact path='/speaker' component={SSpeaker} />
<Route exact path='/speakersimple' component={SSpeakerSimple} />
<Route exact path='/editor' component={Editor} />
<Route exact path='/public' component={SPublic} />
<Route exact path='/lower' component={SLowerThird} />
<Route exact path='/pip' component={SPip} />
{/* Send to default if nothing found */}
<Route component={SSpeaker} />
</Switch>
<ReactQueryDevtools initialIsOpen={false} />
</Suspense>
</div>
</QueryClientProvider>