From ea1c149a1ff8a5962b0961652ac4bfd6aa056723 Mon Sep 17 00:00:00 2001 From: Tuan Cao Date: Wed, 23 Mar 2022 11:21:59 +0700 Subject: [PATCH] Clear warning about styleSheet declare in Page level, move it to _document.js --- components/layout.js | 6 ------ pages/_document.js | 18 ++++++++++++++++++ pages/index.js | 6 ------ 3 files changed, 18 insertions(+), 12 deletions(-) create mode 100644 pages/_document.js diff --git a/components/layout.js b/components/layout.js index 5c45ee8..aff8662 100644 --- a/components/layout.js +++ b/components/layout.js @@ -6,12 +6,6 @@ export default function Layout({children, home}) { return (
- - - - -
{children}
) diff --git a/pages/_document.js b/pages/_document.js new file mode 100644 index 0000000..993348c --- /dev/null +++ b/pages/_document.js @@ -0,0 +1,18 @@ +import { Html, Head, Main, NextScript } from 'next/document' + +export default function Document() { + return ( + + + + + + + +
+ + + + ) +} \ No newline at end of file diff --git a/pages/index.js b/pages/index.js index 9d93567..97a2d8e 100644 --- a/pages/index.js +++ b/pages/index.js @@ -9,12 +9,6 @@ export default function Home({content, graphdata, filenames, directoryTree, ...p return ( - - - - -
{/**/}