Files
warframe-center/app/pages/_app.js
anatolykopyl a77fefc251
Some checks failed
continuous-integration/drone/push Build is failing
Switch ya metrika packages
2022-07-05 09:50:16 +03:00

29 lines
680 B
JavaScript

import { CssBaseline } from '@mui/material'
import { createTheme, ThemeProvider } from '@mui/material/styles'
import { appWithTranslation } from 'next-i18next'
import withYM from 'next-ym'
import Router from 'next/router'
import 'reset-css'
import '../styles/global.scss'
import Layout from '../components/layout'
function App ({ Component, pageProps }) {
const theme = createTheme({
palette: {
mode: 'light'
}
})
return (
<ThemeProvider theme={theme}>
<CssBaseline />
<Layout>
<Component {...pageProps} />
</Layout>
</ThemeProvider>
)
}
export default withYM(process.env.YA_METRIKA_ID, Router)(appWithTranslation(App))