From 1a02b0efa405b88d0e9fd9da8ab830c01b6b28b6 Mon Sep 17 00:00:00 2001 From: Jayden Seric Date: Mon, 17 Jul 2017 15:12:36 +1000 Subject: [PATCH] Added missing `as` propType to `Link`. (#2579) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This was causing the error “Failed prop type: Link: unknown props found: as in Link” when used with next-routes. --- lib/link.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/link.js b/lib/link.js index 75f0300f..ed123864 100644 --- a/lib/link.js +++ b/lib/link.js @@ -16,6 +16,7 @@ export default class Link extends Component { static propTypes = exact({ href: PropTypes.string, + as: PropTypes.string, prefetch: PropTypes.bool, children: PropTypes.oneOfType([ PropTypes.element,