🌟 Code Cleanup

This commit is contained in:
callumok2004
2021-06-21 04:01:23 +01:00
parent 9ed0a2954b
commit 7a1c636cf8
2 changed files with 18 additions and 7 deletions

View File

@@ -9,11 +9,11 @@ export default class MyDocument extends Document {
try {
ctx.renderPage = () =>
originalRenderPage({
enhanceApp: (App: any) => (props: any) =>
sheet.collectStyles(<App {...props} />),
enhanceApp: App => props => sheet.collectStyles(<App {...props} />)
})
const initialProps = await Document.getInitialProps(ctx)
const initialProps = await Document.getInitialProps(ctx);
return {
...initialProps,
styles: (