-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
34 lines (29 loc) · 821 Bytes
/
App.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { CssBaseline, ThemeProvider } from "@mui/material";
import { StyledEngineProvider } from "@mui/material/styles";
import { FC } from "react";
import { Toaster } from "react-hot-toast";
import { useRoutes } from "react-router-dom";
import routes from "./routes";
import { ukoTheme } from "./theme";
const App: FC = () => {
const allPages = useRoutes(routes);
// App theme
const appTheme = ukoTheme();
// toaster options
const toasterOptions = {
style: {
fontWeight: 500,
fontFamily: "'Montserrat', sans-serif",
},
};
return (
<StyledEngineProvider injectFirst>
<ThemeProvider theme={appTheme}>
<CssBaseline />
<Toaster toastOptions={toasterOptions} />
{allPages}
</ThemeProvider>
</StyledEngineProvider>
);
};
export default App;