Commit a256270e authored by Henrik Wenz's avatar Henrik Wenz Committed by Joe Haddad

[with-apollo] Remove prefetch attibutes (#8465)

Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://err.sh/zeit/next.js/prefetch-true-deprecated
parent c3b18fde
...@@ -3,10 +3,10 @@ import { withRouter } from 'next/router' ...@@ -3,10 +3,10 @@ import { withRouter } from 'next/router'
const Header = ({ router: { pathname } }) => ( const Header = ({ router: { pathname } }) => (
<header> <header>
<Link prefetch href='/'> <Link href='/'>
<a className={pathname === '/' ? 'is-active' : ''}>Home</a> <a className={pathname === '/' ? 'is-active' : ''}>Home</a>
</Link> </Link>
<Link prefetch href='/about'> <Link href='/about'>
<a className={pathname === '/about' ? 'is-active' : ''}>About</a> <a className={pathname === '/about' ? 'is-active' : ''}>About</a>
</Link> </Link>
<style jsx>{` <style jsx>{`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment