Initial 1.3.x rework
This commit is contained in:
+12
-24
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user