Files
firegex-traffic-viewer/frontend/src/index.tsx

21 lines
616 B
TypeScript
Raw Normal View History

2022-06-11 21:57:50 +02:00
import React from 'react';
import ReactDOM from 'react-dom/client';
import { BrowserRouter } from "react-router-dom"
import './index.scss';
import App from './App';
2022-06-13 16:12:52 +02:00
import { MantineProvider } from '@mantine/core';
import { NotificationsProvider } from '@mantine/notifications';
2022-06-11 21:57:50 +02:00
const root = ReactDOM.createRoot(
document.getElementById('root') as HTMLElement
);
root.render(
2022-06-13 16:12:52 +02:00
<MantineProvider theme={{ colorScheme: 'dark' }} withGlobalStyles withNormalizeCSS>
<NotificationsProvider>
<BrowserRouter>
<App />
</BrowserRouter>
</NotificationsProvider>
</MantineProvider>
2022-06-11 21:57:50 +02:00
);