diff --git a/pages/_app.page.tsx b/pages/_app.page.tsx index e6e10fe..59cf324 100644 --- a/pages/_app.page.tsx +++ b/pages/_app.page.tsx @@ -1,8 +1,8 @@ import type { AppProps } from 'next/app' import Head from 'next/head' -import TextsStyle from '~/src/styles/TextsStyle' import GlobalStyle from '../src/styles/GlobalStyle' +import TextsStyle from '../src/styles/TextsStyle' function MyApp({ Component, pageProps }: AppProps) { return ( diff --git a/pages/_document.page.js b/pages/_document.page.js index 8b7dc0d..d43c7f5 100644 --- a/pages/_document.page.js +++ b/pages/_document.page.js @@ -13,10 +13,14 @@ export default class MyDocument extends Document { }) const initialProps = await Document.getInitialProps(ctx) - return { ...initialProps, - styles: [initialProps.styles, sheet.getStyleElement()], + styles: ( + <> + {initialProps.styles} + {sheet.getStyleElement()} + + ), } } finally { sheet.seal()