refactor: move the Header component to the home page

main
Josue 4 years ago committed by Tsu-ba-me
parent d416ec2980
commit ec28e8750a
  1. 3
      striker-ui/pages/_app.tsx

@ -2,7 +2,6 @@ import { useEffect } from 'react';
import { AppProps } from 'next/app';
import { ThemeProvider } from '@material-ui/core/styles';
import theme from '../theme';
import Header from '../components/Header';
import '../styles/globals.css';
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
return (
<ThemeProvider theme={theme}>
<Header />
<Component
// eslint-disable-next-line react/jsx-props-no-spreading
{...pageProps}
/>
;
</ThemeProvider>
);
};

Loading…
Cancel
Save