Skip to content

Commit 2e09f79

Browse files
brikoutimneutkens
authored andcommitted
Mark href propType as required (vercel#2882)
1 parent 32d9b75 commit 2e09f79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/link.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default class Link extends Component {
1515
}
1616

1717
static propTypes = exact({
18-
href: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
18+
href: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired,
1919
as: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
2020
prefetch: PropTypes.bool,
2121
replace: PropTypes.bool,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy