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:
parent
e7d91bf692
commit
1a02b0efa4
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue