mirror of
https://github.com/qwertyforce/scenery.git
synced 2025-05-31 11:42:35 +00:00
33 lines
1.0 KiB
TypeScript
33 lines
1.0 KiB
TypeScript
|
|
import React from 'react';
|
|
import Head from 'next/head';
|
|
import { AppProps } from 'next/app';
|
|
import { ThemeProvider } from '@material-ui/core/styles';
|
|
import CssBaseline from '@material-ui/core/CssBaseline';
|
|
import theme from '../components/theme';
|
|
import "../components/styles.css"
|
|
export default function MyApp(props: AppProps) {
|
|
const { Component, pageProps } = props;
|
|
|
|
React.useEffect(() => {
|
|
// Remove the server-side injected CSS.
|
|
const jssStyles = document.querySelector('#jss-server-side');
|
|
if (jssStyles) {
|
|
jssStyles.parentElement?.removeChild(jssStyles);
|
|
}
|
|
}, []);
|
|
|
|
return (
|
|
<React.Fragment>
|
|
<Head>
|
|
<title>Scenery</title>
|
|
<meta name="viewport" content="minimum-scale=1, initial-scale=1, width=device-width" />
|
|
</Head>
|
|
<ThemeProvider theme={theme}>
|
|
{/* CssBaseline kickstart an elegant, consistent, and simple baseline to build upon. */}
|
|
<CssBaseline />
|
|
<Component {...pageProps} />
|
|
</ThemeProvider>
|
|
</React.Fragment>
|
|
);
|
|
} |