mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
5872a1c82c
* chore: adapt to vite * remove react-scripts * add jsdom dep, update snaps * fix tests * fix: formatting * fix: vercel rewrite * fix: regeneratorRuntime is not defined Co-authored-by: Tymoteusz Czech <tymek+gpg@getunleash.ai> Co-authored-by: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com>
37 lines
1.5 KiB
TypeScript
37 lines
1.5 KiB
TypeScript
import 'whatwg-fetch';
|
|
import 'themes/app.css';
|
|
import 'regenerator-runtime/runtime';
|
|
|
|
import ReactDOM from 'react-dom';
|
|
import { BrowserRouter } from 'react-router-dom';
|
|
import { DndProvider } from 'react-dnd';
|
|
import { HTML5Backend } from 'react-dnd-html5-backend';
|
|
import { ThemeProvider } from 'themes/ThemeProvider';
|
|
import { App } from 'component/App';
|
|
import { ScrollTop } from 'component/common/ScrollTop/ScrollTop';
|
|
import { AccessProvider } from 'component/providers/AccessProvider/AccessProvider';
|
|
import { getBasePath } from 'utils/formatPath';
|
|
import { FeedbackCESProvider } from 'component/feedback/FeedbackCESContext/FeedbackCESProvider';
|
|
import UIProvider from 'component/providers/UIProvider/UIProvider';
|
|
import { AnnouncerProvider } from 'component/common/Announcer/AnnouncerProvider/AnnouncerProvider';
|
|
|
|
ReactDOM.render(
|
|
<DndProvider backend={HTML5Backend}>
|
|
<UIProvider>
|
|
<AccessProvider>
|
|
<BrowserRouter basename={`${getBasePath()}`}>
|
|
<ThemeProvider>
|
|
<AnnouncerProvider>
|
|
<FeedbackCESProvider>
|
|
<ScrollTop />
|
|
<App />
|
|
</FeedbackCESProvider>
|
|
</AnnouncerProvider>
|
|
</ThemeProvider>
|
|
</BrowserRouter>
|
|
</AccessProvider>
|
|
</UIProvider>
|
|
</DndProvider>,
|
|
document.getElementById('app')
|
|
);
|