1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Added missing as propType to Link. (#2579)

This was causing the error “Failed prop type: Link: unknown props found: as in Link” when used with next-routes.
This commit is contained in:
Jayden Seric 2017-07-17 15:12:36 +10:00 committed by Arunoda Susiripala
parent e7d91bf692
commit 1a02b0efa4

View file

@ -16,6 +16,7 @@ export default class Link extends Component {
static propTypes = exact({ static propTypes = exact({
href: PropTypes.string, href: PropTypes.string,
as: PropTypes.string,
prefetch: PropTypes.bool, prefetch: PropTypes.bool,
children: PropTypes.oneOfType([ children: PropTypes.oneOfType([
PropTypes.element, PropTypes.element,