11// This is largely taken from react-router/lib/Link.
2-
32import React from 'react' ;
3+ import PropTypes from 'prop-types' ;
44
55function isLeftClickEvent ( event ) {
66 return event . button === 0 ;
@@ -24,26 +24,26 @@ function createLocationDescriptor(to, query, hash, state) {
2424}
2525
2626const propTypes = {
27- onlyActiveOnIndex : React . PropTypes . bool . isRequired ,
28- to : React . PropTypes . oneOfType ( [
29- React . PropTypes . string ,
30- React . PropTypes . object ,
27+ onlyActiveOnIndex : PropTypes . bool . isRequired ,
28+ to : PropTypes . oneOfType ( [
29+ PropTypes . string ,
30+ PropTypes . object ,
3131 ] ) . isRequired ,
32- query : React . PropTypes . string ,
33- hash : React . PropTypes . string ,
34- state : React . PropTypes . object ,
35- action : React . PropTypes . oneOf ( [
32+ query : PropTypes . string ,
33+ hash : PropTypes . string ,
34+ state : PropTypes . object ,
35+ action : PropTypes . oneOf ( [
3636 'push' ,
3737 'replace' ,
3838 ] ) . isRequired ,
39- onClick : React . PropTypes . func ,
40- active : React . PropTypes . bool ,
41- target : React . PropTypes . string ,
42- children : React . PropTypes . node . isRequired ,
39+ onClick : PropTypes . func ,
40+ active : PropTypes . bool ,
41+ target : PropTypes . string ,
42+ children : PropTypes . node . isRequired ,
4343} ;
4444
4545const contextTypes = {
46- router : React . PropTypes . object ,
46+ router : PropTypes . object ,
4747} ;
4848
4949const defaultProps = {
0 commit comments