aboutsummaryrefslogtreecommitdiff
path: root/vnext/src
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src')
-rw-r--r--vnext/src/index.js25
1 files changed, 8 insertions, 17 deletions
diff --git a/vnext/src/index.js b/vnext/src/index.js
index 9f9fa4a3..59365d37 100644
--- a/vnext/src/index.js
+++ b/vnext/src/index.js
@@ -1,29 +1,20 @@
-import { StrictMode, lazy, Suspense } from 'react';
+import { StrictMode } from 'react';
import { hydrateRoot } from 'react-dom/client';
import { BrowserRouter } from 'react-router-dom';
import { CookiesProvider } from 'react-cookie';
import './index.css';
+import Juick from './App';
-function LoadingView() {
- return (
- <div id="content">
- <div className="lds-ripple"><div></div><div></div></div>
- </div>
- );
-}
-
-const Juick = lazy(() => import('./App'));
+const props = window.__PROPS__ ? JSON.parse(window.atob(window.__PROPS__)) : {};
const JuickApp = () => (
<StrictMode>
- <Suspense fallback={LoadingView()}>
- <CookiesProvider>
- <BrowserRouter>
- <Juick />
- </BrowserRouter>
- </CookiesProvider>
- </Suspense>
+ <CookiesProvider>
+ <BrowserRouter>
+ <Juick {...props} />
+ </BrowserRouter>
+ </CookiesProvider>
</StrictMode>
);