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.

App.js 705B

123456789101112131415161718192021222324252627
  1. import React from "react";
  2. import { Router } from "react-router-dom";
  3. import { Helmet } from "react-helmet-async";
  4. import i18next from "i18next";
  5. import history from "./store/utils/history";
  6. import AppRoutes from "./AppRoutes";
  7. import GlobalStyle from "./components/Styles/globalStyles";
  8. import { StyledEngineProvider } from "@mui/material";
  9. const App = () => {
  10. return (
  11. <>
  12. <Router history={history}>
  13. <Helmet>
  14. <title>{i18next.t("app.title")}</title>
  15. </Helmet>
  16. <main className="l-page">
  17. <StyledEngineProvider injectFirst>
  18. <GlobalStyle />
  19. <AppRoutes />
  20. </StyledEngineProvider>
  21. </main>
  22. </Router>
  23. </>
  24. )};
  25. export default App;