From baf3452e877f84ef775289b9034871b94b21357e Mon Sep 17 00:00:00 2001 From: callumok2004 Date: Mon, 21 Jun 2021 04:05:17 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=9F=20Code=20Cleanup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/_document.js | 5 +++-- tsconfig.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pages/_document.js b/pages/_document.js index 0b206b6..7511a5a 100644 --- a/pages/_document.js +++ b/pages/_document.js @@ -9,10 +9,11 @@ export default class MyDocument extends Document { try { ctx.renderPage = () => originalRenderPage({ - enhanceApp: App => props => sheet.collectStyles() + enhanceApp: (App) => (props) => + sheet.collectStyles(), }) - const initialProps = await Document.getInitialProps(ctx); + const initialProps = await Document.getInitialProps(ctx) return { ...initialProps, styles: ( diff --git a/tsconfig.json b/tsconfig.json index fd21301..fefbdbf 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -22,7 +22,7 @@ "next-env.d.ts", "**/*.ts", "**/*.tsx", - "pages/_document.js" + "pages/_document.tsx" ], "exclude": [ "node_modules"