fix styled-components

This commit is contained in:
AykutSarac 2022-04-17 10:24:16 +03:00
parent d1d219fbbd
commit b1880bda0c

View File

@ -28,7 +28,7 @@ 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();