Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace CSS tag with JS import #28143

Merged
merged 2 commits into from Aug 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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