Strict mode preparations

main
Mike Fix 6 years ago
parent 054622a57b
commit 4115020919

File diff suppressed because one or more lines are too long

@ -67,7 +67,7 @@ export const MetaLinks = React.memo(() => {
{CDN_STYLESHEETS.map(themeDef => { {CDN_STYLESHEETS.map(themeDef => {
const href = `//cdnjs.cloudflare.com/ajax/libs/codemirror/5.42.2/theme/${themeDef && const href = `//cdnjs.cloudflare.com/ajax/libs/codemirror/5.42.2/theme/${themeDef &&
(themeDef.link || themeDef.id)}.min.css` (themeDef.link || themeDef.id)}.min.css`
return <Link key={href} href={href} /> return <Link key={themeDef.id} href={href} />
})} })}
</React.Fragment> </React.Fragment>
) )

@ -4,6 +4,7 @@ import Document, { Head, Main, NextScript } from 'next/document'
export default class extends Document { export default class extends Document {
render() { render() {
return ( return (
<React.StrictMode>
<html lang="en"> <html lang="en">
<Head /> <Head />
<body> <body>
@ -11,6 +12,7 @@ export default class extends Document {
<NextScript /> <NextScript />
</body> </body>
</html> </html>
</React.StrictMode>
) )
} }
} }

Loading…
Cancel
Save