|
|
|
|
@ -44,6 +44,10 @@ const Main = () => { |
|
|
|
|
return <AuthenticatedApp /> |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const date = new Date() |
|
|
|
|
const startDate = '2022-11-24T23:00:00' |
|
|
|
|
const stopDate = '2022-11-25T05:00:00' |
|
|
|
|
|
|
|
|
|
const OTTApp = () => ( |
|
|
|
|
<MatomoProvider value={matomoInstance}> |
|
|
|
|
<Router history={history}> |
|
|
|
|
@ -52,7 +56,10 @@ const OTTApp = () => ( |
|
|
|
|
<GlobalStores> |
|
|
|
|
<Background> |
|
|
|
|
<Suspense fallback={null}> |
|
|
|
|
{isAvailable ? (<Main />) : (<UnavailableText />)} |
|
|
|
|
{isAvailable |
|
|
|
|
&& (date.getTime() < new Date(startDate).getTime() |
|
|
|
|
|| date.getTime() > new Date(stopDate).getTime()) |
|
|
|
|
? (<Main />) : (<UnavailableText />)} |
|
|
|
|
</Suspense> |
|
|
|
|
</Background> |
|
|
|
|
</GlobalStores> |
|
|
|
|
|