mirror of
https://github.com/fazo96/ipfs-boards
synced 2025-02-04 16:34:19 +01:00
36 lines
989 B
JavaScript
36 lines
989 B
JavaScript
|
import React from 'react';
|
||
|
import App from 'next/app';
|
||
|
import Head from 'next/head';
|
||
|
import { ThemeProvider } from '@material-ui/styles';
|
||
|
import AppBar from '../components/AppBar'
|
||
|
import CssBaseline from '@material-ui/core/CssBaseline';
|
||
|
import theme from '../components/theme';
|
||
|
|
||
|
export default class MyApp extends App {
|
||
|
componentDidMount() {
|
||
|
// Remove the server-side injected CSS.
|
||
|
const jssStyles = document.querySelector('#jss-server-side');
|
||
|
if (jssStyles) {
|
||
|
jssStyles.parentNode.removeChild(jssStyles);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
render() {
|
||
|
const { Component, pageProps } = this.props;
|
||
|
|
||
|
return (
|
||
|
<React.Fragment>
|
||
|
<Head>
|
||
|
<title>IPFS Boards</title>
|
||
|
</Head>
|
||
|
<ThemeProvider theme={theme}>
|
||
|
{/* CssBaseline kickstart an elegant, consistent, and simple baseline to build upon. */}
|
||
|
<CssBaseline />
|
||
|
<AppBar />
|
||
|
<Component {...pageProps} />
|
||
|
</ThemeProvider>
|
||
|
</React.Fragment>
|
||
|
);
|
||
|
}
|
||
|
}
|