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

28 lines
777 B
TypeScript
Raw Normal View History

2022-06-11 21:57:50 +02:00
import ReactDOM from 'react-dom/client';
import { BrowserRouter } from "react-router-dom"
import App from './App';
2024-10-13 01:50:52 +02:00
import { createTheme, MantineProvider } from '@mantine/core';
2023-06-05 00:55:38 +02:00
import { Notifications } from '@mantine/notifications';
2023-09-24 05:48:54 +02:00
import {
QueryClientProvider,
} from '@tanstack/react-query'
import { queryClient } from './js/utils';
2024-10-13 01:50:52 +02:00
import '@mantine/core/styles.css';
import '@mantine/notifications/styles.css';
import './index.css';
2022-06-11 21:57:50 +02:00
const root = ReactDOM.createRoot(
document.getElementById('root') as HTMLElement
);
2023-09-24 05:48:54 +02:00
2022-06-11 21:57:50 +02:00
root.render(
2023-09-24 05:48:54 +02:00
<QueryClientProvider client={queryClient}>
2024-10-13 01:50:52 +02:00
<MantineProvider defaultColorScheme='dark'>
2023-09-24 05:48:54 +02:00
<Notifications />
<BrowserRouter>
2024-10-13 01:50:52 +02:00
<App />
2023-09-24 05:48:54 +02:00
</BrowserRouter>
</MantineProvider>
</QueryClientProvider>
2022-06-11 21:57:50 +02:00
);