From 8c92ad728785286a30a8764925328b6001964aa2 Mon Sep 17 00:00:00 2001 From: Daniel Ternyak Date: Fri, 14 Apr 2017 01:27:01 -0500 Subject: [PATCH] Use prop-types package instead of React.PropTypes. --- common/components/common/InputComponent.jsx | 23 +++++++++++---------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/common/components/common/InputComponent.jsx b/common/components/common/InputComponent.jsx index f4d0a770..cbb9aa9f 100644 --- a/common/components/common/InputComponent.jsx +++ b/common/components/common/InputComponent.jsx @@ -1,6 +1,7 @@ import React, {Component} from 'react'; import {Input, Form, Label} from 'semantic-ui-react'; import {omit} from 'lodash'; +import PropTypes from 'prop-types'; // export default class InputComponent extends Component { @@ -13,17 +14,17 @@ export default class InputComponent extends Component { } static propTypes = { - validate: React.PropTypes.func, - connectToParent: React.PropTypes.func, - value: React.PropTypes.any, - error: React.PropTypes.string, - labelText: React.PropTypes.string, - label: React.PropTypes.string, - placeholder: React.PropTypes.string, - name: React.PropTypes.string, - type: React.PropTypes.string, - as: React.PropTypes.node, - action: React.PropTypes.any + validate: PropTypes.func, + connectToParent: PropTypes.func, + value: PropTypes.any, + error: PropTypes.string, + labelText: PropTypes.string, + label: PropTypes.string, + placeholder: PropTypes.string, + name: PropTypes.string, + type: PropTypes.string, + as: PropTypes.node, + action: PropTypes.any } handleChange(event) {