Skip to content

Commit

Permalink
Replace CSS tag with JS import (#28143)
Browse files Browse the repository at this point in the history
Replaces `<link />` tag import with JS import to fix ESLint warning: https://nextjs.org/docs/messages/no-css-tags
  • Loading branch information
abzr1 committed Aug 16, 2021
1 parent 639b4d7 commit 876cbba
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions examples/with-loading/pages/_app.js
@@ -1,8 +1,8 @@
import { useEffect } from 'react'
import Link from 'next/link'
import Head from 'next/head'
import { useRouter } from 'next/router'
import NProgress from 'nprogress'
import '../public/nprogress.css'

export default function App({ Component, pageProps }) {
const router = useRouter()
Expand All @@ -29,10 +29,6 @@ export default function App({ Component, pageProps }) {

return (
<>
<Head>
{/* Import CSS for nprogress */}
<link rel="stylesheet" type="text/css" href="/nprogress.css" />
</Head>
<nav>
<style jsx>{`
a {
Expand Down

0 comments on commit 876cbba

Please sign in to comment.