crap
This commit is contained in:
31
src/main.tsx
31
src/main.tsx
@@ -9,9 +9,11 @@ import {store} from "./redux/store.ts";
|
||||
|
||||
import '@mantine/core/styles.css';
|
||||
import '@mantine/notifications/styles.css';
|
||||
import './main.scss';
|
||||
import './main.css';
|
||||
import {Notifications} from "@mantine/notifications";
|
||||
import {ModalsProvider} from "@mantine/modals";
|
||||
import {OpenAPI} from "./client";
|
||||
import PageWrapper from "./pages/PageWrapper/PageWrapper.tsx";
|
||||
|
||||
// Configuring router
|
||||
const router = createRouter({routeTree})
|
||||
@@ -24,17 +26,22 @@ declare module '@tanstack/react-router' {
|
||||
// Configuring query
|
||||
const queryClient = new QueryClient();
|
||||
|
||||
// Configuring OpenAPI
|
||||
OpenAPI.BASE = import.meta.env.VITE_API_URL
|
||||
OpenAPI.TOKEN = JSON.parse(localStorage.getItem('authState') || "{}")['accessToken'];
|
||||
ReactDOM.createRoot(document.getElementById('root')!).render(
|
||||
<React.StrictMode>
|
||||
<Provider store={store}>
|
||||
<QueryClientProvider client={queryClient}>
|
||||
<MantineProvider defaultColorScheme={"dark"}>
|
||||
<ModalsProvider>
|
||||
// <React.StrictMode>
|
||||
<Provider store={store}>
|
||||
<QueryClientProvider client={queryClient}>
|
||||
<MantineProvider defaultColorScheme={"dark"}>
|
||||
<ModalsProvider>
|
||||
|
||||
<RouterProvider router={router}/>
|
||||
<Notifications/>
|
||||
</ModalsProvider>
|
||||
</MantineProvider>
|
||||
</QueryClientProvider>
|
||||
</Provider>
|
||||
</React.StrictMode>,
|
||||
|
||||
<Notifications/>
|
||||
</ModalsProvider>
|
||||
</MantineProvider>
|
||||
</QueryClientProvider>
|
||||
</Provider>
|
||||
// </React.StrictMode>,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user