Initial 1.3.x rework

This commit is contained in:
Sacha Weatherstone
2022-07-26 08:52:23 +10:00
parent ff6019098b
commit a2280ab96e
163 changed files with 6383 additions and 14397 deletions
+12 -24
View File
@@ -1,32 +1,20 @@
import '@app/index.css';
import "modern-css-reset/dist/reset.min.css";
import type React from 'react';
import { StrictMode } from 'react';
import type React from "react";
import { StrictMode } from "react";
import { domAnimation, LazyMotion } from 'framer-motion';
import { createRoot } from 'react-dom/client';
import { ErrorBoundary } from 'react-error-boundary';
import { Provider } from 'react-redux';
import { enableMapSet } from "immer";
import { createRoot } from "react-dom/client";
import { App } from '@app/App';
import { ErrorFallback } from '@components/ErrorFallback';
import { ReloadPrompt } from '@components/pwa/ReloadPrompt';
import { RouteProvider } from '@core/router';
import { store } from '@core/store';
import { App } from "@app/App";
const container = document.getElementById('root') as HTMLElement;
const container = document.getElementById("root") as HTMLElement;
const root = createRoot(container);
enableMapSet();
root.render(
<StrictMode>
<ErrorBoundary FallbackComponent={ErrorFallback}>
<RouteProvider>
<Provider store={store}>
<LazyMotion features={domAnimation}>
<App />
</LazyMotion>
<ReloadPrompt />
</Provider>
</RouteProvider>
</ErrorBoundary>
</StrictMode>,
<App />
</StrictMode>
);