1
0
Fork 0
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:
Brikou CARRE 2017-09-01 20:57:13 +02:00 committed by Tim Neutkens
parent 32d9b75d55
commit 2e09f79d4d

View file

@ -15,7 +15,7 @@ export default class Link extends Component {
}
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]),
prefetch: PropTypes.bool,
replace: PropTypes.bool,