Passed
Pull Request — master (#22)
by Vitor
02:22
created

MyDocument   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 28
dl 0
loc 35
c 0
b 0
f 0
rs 10

1 Function

Rating   Name   Duplication   Size   Complexity  
A render 0 33 1
1
import React from 'react';
2
import Document, { Html, Head, Main, NextScript } from 'next/document';
3
4
class MyDocument extends Document {
5
  render() {
6
    return (
7
      <Html lang="en">
8
        <Head>
9
          <meta charSet="UTF-8" />
10
          <link rel="preconnect" href="https://fonts.gstatic.com" />
11
          <meta httpEquiv="x-ua-compatible" content="ie=edge" />
12
          <link href="https://fonts.googleapis.com/css2?family=Lora:wght@400;700&display=swap" media="all" rel="stylesheet" />
13
          <link href="https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400;700&display=swap" media="all" rel="stylesheet" />
14
15
          <script async src="https://www.googletagmanager.com/gtag/js?id=UA-140852685-1" />
16
          <script
17
            // eslint-disable-next-line react/no-danger
18
            dangerouslySetInnerHTML={{ __html: `
19
              window.dataLayer = window.dataLayer || [];
20
              function gtag(){dataLayer.push(arguments);}
21
              gtag('js', new Date());
22
23
              gtag('config', 'UA-140852685-1');
24
            ` }}
25
          />
26
          <meta name="theme-color" content="#a2466c" />
27
          <link rel="apple-touch-icon" sizes="192x192" href="/favicons/android-chrome-192x192.png" />
28
          <link rel="apple-touch-icon" sizes="512x512" href="/favicons/android-chrome-512x512.png" />
29
          <link rel="apple-touch-icon" sizes="16x16" href="/favicons/favicon-16x16.png" />
30
          <link rel="apple-touch-icon" sizes="32x32" href="/favicons/favicon-32x32.png" />
31
        </Head>
32
33
        <body>
34
          <Main />
35
          <NextScript />
36
        </body>
37
      </Html>
38
    );
39
  }
40
}
41
42
export default MyDocument;
43