mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Mark href propType as required (#2882)
This commit is contained in:
parent
32d9b75d55
commit
2e09f79d4d
|
@ -15,7 +15,7 @@ export default class Link extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
static propTypes = exact({
|
static propTypes = exact({
|
||||||
href: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
href: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired,
|
||||||
as: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
as: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
||||||
prefetch: PropTypes.bool,
|
prefetch: PropTypes.bool,
|
||||||
replace: PropTypes.bool,
|
replace: PropTypes.bool,
|
||||||
|
|
Loading…
Reference in a new issue