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

Loading…
Cancel
Save