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 { 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>
); );
}; };

Loading…
Cancel
Save