File size: 3,131 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
import React from 'react';
import Document, { Head, Main, NextScript } from 'next/document';
import JssProvider from 'react-jss/lib/JssProvider';
import getPageContext from '../utils/getPageContext';
class MyDocument extends Document {
render() {
return (
<html lang="en" dir="ltr">
<Head>
<title>Material-UI DataTables</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta
name="description"
content={'MUI-Datatables is a data tables component built for React Material-UI V1'}
/>
<meta
name="keywords"
content={
'material-ui, data tables, datatables, material-ui, material-ui-datables, react tables, react data tables'
}
/>
<meta name="robots" content="index,follow,noodp" />
<meta name="author" content="Gregory Nowakowski" />
<meta name="googlebot" content="noarchive" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" />
<link rel="shortcut icon" href="/static/favicon.ico" />
<style>
{`
body {
margin: 0px;
padding: 0px;
height: 100%;
font-size: 16px;
min-height: min-content;
font-family: Roboto, Helvetica, Arial, sans-serif;
}
a {
color: #0366d6;
text-decoration: none;
}
p {
line-height: 1.6;
}
.token.operator, .token.entity, .token.url, .language-css .token.string, .style .token.string {
background: none !important;
}
`}
</style>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-116686642-1" />
);
}
}
MyDocument.getInitialProps = ctx => {
const pageContext = getPageContext();
const page = ctx.renderPage(Component => props => (
));
return {
...page,
pageContext,
styles: (
),
};
};
export default MyDocument;
|