Skip to content

Commit

Permalink
use PropTypes from specific package (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
HedgeHogBy authored and ayrton committed Aug 28, 2017
1 parent 81fc7ab commit 5cc6c49
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/key-handler.js
@@ -1,6 +1,7 @@
/* @flow */

import React from 'react';
import PropTypes from 'prop-types';
import {canUseDOM} from 'exenv';

import {KEYDOWN, KEYPRESS, KEYUP} from './constants';
Expand All @@ -19,10 +20,10 @@ export default class KeyHandler extends React.Component {
};

static propTypes = {
keyValue: React.PropTypes.string,
keyCode: React.PropTypes.number,
keyEventName: React.PropTypes.oneOf([KEYDOWN, KEYPRESS, KEYUP]),
onKeyHandle: React.PropTypes.func,
keyValue: PropTypes.string,
keyCode: PropTypes.number,
keyEventName: PropTypes.oneOf([KEYDOWN, KEYPRESS, KEYUP]),
onKeyHandle: PropTypes.func,
};

static defaultProps = {
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -52,6 +52,7 @@
"flow-bin": "^0.32.0",
"jsdom": "^9.4.1",
"mocha": "^3.0.0",
"prop-types": "^15.5.6",
"react": "^0.14.0 || ^15.0.0-0",
"react-addons-test-utils": "^0.14.0 || ^15.0.0-0",
"react-dom": "^0.14.0 || ^15.0.0-0",
Expand Down

0 comments on commit 5cc6c49

Please sign in to comment.