mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-05 14:29:20 +00:00
hotfix: no loader
Lower third cannot have loader, dont seem to find a way to separe the fallback component for that one route. Disable loaders for now, will need revision
This commit is contained in:
+3
-5
@@ -4,8 +4,6 @@ import './App.css';
|
|||||||
import { QueryClient, QueryClientProvider } from 'react-query';
|
import { QueryClient, QueryClientProvider } from 'react-query';
|
||||||
import SocketProvider from 'app/context/socketContext';
|
import SocketProvider from 'app/context/socketContext';
|
||||||
import withSocket from 'features/viewers/ViewWrapper';
|
import withSocket from 'features/viewers/ViewWrapper';
|
||||||
import { ReactQueryDevtools } from 'react-query/devtools';
|
|
||||||
import Empty from 'common/state/Empty';
|
|
||||||
|
|
||||||
const Editor = lazy(() => import('features/editors/Editor'));
|
const Editor = lazy(() => import('features/editors/Editor'));
|
||||||
const PresenterView = lazy(() =>
|
const PresenterView = lazy(() =>
|
||||||
@@ -42,7 +40,7 @@ function App() {
|
|||||||
<SocketProvider>
|
<SocketProvider>
|
||||||
<QueryClientProvider client={queryClient}>
|
<QueryClientProvider client={queryClient}>
|
||||||
<div className='App'>
|
<div className='App'>
|
||||||
<Suspense fallback={<Empty text='Loading' />}>
|
<Suspense fallback={null}>
|
||||||
<Switch>
|
<Switch>
|
||||||
<Route exact path='/' component={SSpeaker} />
|
<Route exact path='/' component={SSpeaker} />
|
||||||
<Route exact path='/sm' component={SStageManager} />
|
<Route exact path='/sm' component={SStageManager} />
|
||||||
@@ -50,12 +48,12 @@ function App() {
|
|||||||
<Route exact path='/speakersimple' component={SSpeakerSimple} />
|
<Route exact path='/speakersimple' component={SSpeakerSimple} />
|
||||||
<Route exact path='/editor' component={Editor} />
|
<Route exact path='/editor' component={Editor} />
|
||||||
<Route exact path='/public' component={SPublic} />
|
<Route exact path='/public' component={SPublic} />
|
||||||
<Route exact path='/lower' component={SLowerThird} />
|
|
||||||
<Route exact path='/pip' component={SPip} />
|
<Route exact path='/pip' component={SPip} />
|
||||||
|
{/* Lower cannot have fallback */}
|
||||||
|
<Route exact path='/lower' component={SLowerThird} />
|
||||||
{/* Send to default if nothing found */}
|
{/* Send to default if nothing found */}
|
||||||
<Route component={SSpeaker} />
|
<Route component={SSpeaker} />
|
||||||
</Switch>
|
</Switch>
|
||||||
<ReactQueryDevtools initialIsOpen={false} />
|
|
||||||
</Suspense>
|
</Suspense>
|
||||||
</div>
|
</div>
|
||||||
</QueryClientProvider>
|
</QueryClientProvider>
|
||||||
|
|||||||
Reference in New Issue
Block a user