1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +01:00
unleash.unleash/frontend/src/index.tsx

36 lines
1.4 KiB
TypeScript
Raw Normal View History

2016-12-22 14:09:16 +01:00
import 'whatwg-fetch';
import 'themes/app.css';
2016-11-10 14:26:24 +01:00
import ReactDOM from 'react-dom';
import { Route, BrowserRouter as Router } 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';
2016-11-10 14:26:24 +01:00
ReactDOM.render(
<DndProvider backend={HTML5Backend}>
<UIProvider>
<AccessProvider>
<Router basename={`${getBasePath()}`}>
<ThemeProvider>
<AnnouncerProvider>
<FeedbackCESProvider>
<ScrollTop />
<Route path="/" component={App} />
</FeedbackCESProvider>
</AnnouncerProvider>
</ThemeProvider>
</Router>
</AccessProvider>
</UIProvider>
</DndProvider>,
document.getElementById('app')
);