Updates for telemetry rework

This commit is contained in:
Sacha Weatherstone
2022-04-13 14:29:24 +10:00
parent f0c561a854
commit d84d7d94cc
16 changed files with 994 additions and 1000 deletions
+4 -3
View File
@@ -2,9 +2,9 @@ import '@app/index.css';
import type React from 'react';
import { StrictMode } from 'react';
import { render } from 'react-dom';
import { domAnimation, LazyMotion } from 'framer-motion';
import { createRoot } from 'react-dom/client';
import { ErrorBoundary } from 'react-error-boundary';
import { Provider } from 'react-redux';
@@ -14,7 +14,9 @@ import { ReloadPrompt } from '@components/pwa/ReloadPrompt';
import { RouteProvider } from '@core/router';
import { store } from '@core/store';
render(
const container = document.getElementById('root') as HTMLElement;
const root = createRoot(container);
root.render(
<StrictMode>
<ErrorBoundary FallbackComponent={ErrorFallback}>
<RouteProvider>
@@ -27,5 +29,4 @@ render(
</RouteProvider>
</ErrorBoundary>
</StrictMode>,
document.getElementById('root'),
);