You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

46 rivejä
1.5 KiB

  1. import { StrictMode } from 'react';
  2. import { createRoot } from 'react-dom/client';
  3. import { BrowserRouter } from 'react-router-dom';
  4. import "./assets/style/styles.css"
  5. // scroll bar
  6. import 'simplebar/src/simplebar.css';
  7. // third-party
  8. import { Provider as ReduxProvider } from 'react-redux';
  9. // apex-chart
  10. import 'assets/third-party/apex-chart.css';
  11. // project import
  12. import App from './App';
  13. import { store } from 'store';
  14. import reportWebVitals from './reportWebVitals';
  15. import {I18nProvider} from "./components/I18nProvider";
  16. import {AutoLogoutProvider} from "./components/AutoLogoutProvider";
  17. // ==============================|| MAIN - REACT DOM RENDER ||============================== //
  18. const container = document.getElementById('root');
  19. const root = createRoot(container); // createRoot(container!) if you use TypeScript
  20. //const NotAuthorized = lazy(() => import('../views/NotAuthorized'))
  21. //const Error = lazy(() => import('../views/Error'))
  22. root.render(
  23. <StrictMode>
  24. <ReduxProvider store={store}>
  25. <I18nProvider>
  26. <BrowserRouter basename="/">
  27. <AutoLogoutProvider>
  28. <App />
  29. </AutoLogoutProvider>
  30. </BrowserRouter>
  31. </I18nProvider>
  32. </ReduxProvider>
  33. </StrictMode>
  34. );
  35. // If you want to start measuring performance in your app, pass a function
  36. // to log results (for example: reportWebVitals(console.log))
  37. // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
  38. reportWebVitals();