|
|
@ -2,7 +2,6 @@ import { useEffect } from 'react'; |
|
|
|
import { AppProps } from 'next/app'; |
|
|
|
import { AppProps } from 'next/app'; |
|
|
|
import { ThemeProvider } from '@material-ui/core/styles'; |
|
|
|
import { ThemeProvider } from '@material-ui/core/styles'; |
|
|
|
import theme from '../theme'; |
|
|
|
import theme from '../theme'; |
|
|
|
import Header from '../components/Header'; |
|
|
|
|
|
|
|
import '../styles/globals.css'; |
|
|
|
import '../styles/globals.css'; |
|
|
|
|
|
|
|
|
|
|
|
const App = ({ Component, pageProps }: AppProps): JSX.Element => { |
|
|
|
const App = ({ Component, pageProps }: AppProps): JSX.Element => { |
|
|
@ -19,12 +18,10 @@ const App = ({ Component, pageProps }: AppProps): JSX.Element => { |
|
|
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
|
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<ThemeProvider theme={theme}> |
|
|
|
<ThemeProvider theme={theme}> |
|
|
|
<Header /> |
|
|
|
|
|
|
|
<Component |
|
|
|
<Component |
|
|
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
|
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
|
|
{...pageProps} |
|
|
|
{...pageProps} |
|
|
|
/> |
|
|
|
/> |
|
|
|
; |
|
|
|
|
|
|
|
</ThemeProvider> |
|
|
|
</ThemeProvider> |
|
|
|
); |
|
|
|
); |
|
|
|
}; |
|
|
|
}; |
|
|
|