Commit 1a02b0ef authored by Jayden Seric's avatar Jayden Seric Committed by Arunoda Susiripala

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.
parent e7d91bf6
...@@ -16,6 +16,7 @@ export default class Link extends Component { ...@@ -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,
......
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