mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-17 13:23:35 +00:00
clenanup unused
This commit is contained in:
+15
-13
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user