From 5071b0292d3eb09c7108ff8550c802ebde27fb7d Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Wed, 12 Feb 2020 23:28:42 +0300 Subject: [PATCH] _document refactoring + ts --- pages/{_document.jsx => _document.tsx} | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) rename pages/{_document.jsx => _document.tsx} (87%) diff --git a/pages/_document.jsx b/pages/_document.tsx similarity index 87% rename from pages/_document.jsx rename to pages/_document.tsx index 5b1b3d07..121ffed0 100644 --- a/pages/_document.jsx +++ b/pages/_document.tsx @@ -1,20 +1,12 @@ -import React from 'react' import Document, { Html, Head, Main, NextScript } from 'next/document' -import { YMetrika } from '../src/components/YMetrika' -import { GAnalytics } from '../src/components/GAnalytics' +import { YMetrika } from 'src/components/YMetrika' +import { GAnalytics } from 'src/components/GAnalytics' export default class MyDocument extends Document { - // static async getInitialProps(ctx) { - // const initialProps = await Document.getInitialProps(ctx); - // return { ...initialProps }; - // } - render() { return ( - - @@ -62,11 +54,11 @@ export default class MyDocument extends Document { - +
- ); + ) } }