Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

43 lignes
1.3 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. // ==============================|| MAIN - REACT DOM RENDER ||============================== //
  17. const container = document.getElementById('root');
  18. const root = createRoot(container); // createRoot(container!) if you use TypeScript
  19. //const NotAuthorized = lazy(() => import('../views/NotAuthorized'))
  20. //const Error = lazy(() => import('../views/Error'))
  21. root.render(
  22. <StrictMode>
  23. <ReduxProvider store={store}>
  24. <I18nProvider>
  25. <BrowserRouter basename="/">
  26. <App />
  27. </BrowserRouter>
  28. </I18nProvider>
  29. </ReduxProvider>
  30. </StrictMode>
  31. );
  32. // If you want to start measuring performance in your app, pass a function
  33. // to log results (for example: reportWebVitals(console.log))
  34. // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
  35. reportWebVitals();