Skip to content

Commit 59a60da

Browse files
authored
React.PropTypes to prop-types
1 parent 61336bc commit 59a60da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/link.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import * as React from 'react';
2+
import * as PropTypes from 'prop-types';
23

34
export interface Props {
45
to: any,
@@ -13,7 +14,7 @@ export interface State {
1314
export default class Link extends React.Component<Props, State> {
1415
context: any;
1516
static contextTypes = {
16-
router: React.PropTypes.object
17+
router: PropTypes.object
1718
};
1819
static isActive(to, path, activeOnlyWhenExact) {
1920
return activeOnlyWhenExact ? path === to : path.indexOf(to) === 0;

0 commit comments

Comments
 (0)