summaryrefslogtreecommitdiffstats
path: root/webapp/components/textbox.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/textbox.jsx')
-rw-r--r--webapp/components/textbox.jsx28
1 files changed, 15 insertions, 13 deletions
diff --git a/webapp/components/textbox.jsx b/webapp/components/textbox.jsx
index b183f0514..55980d331 100644
--- a/webapp/components/textbox.jsx
+++ b/webapp/components/textbox.jsx
@@ -18,23 +18,25 @@ import {FormattedMessage} from 'react-intl';
const PreReleaseFeatures = Constants.PRE_RELEASE_FEATURES;
+import PropTypes from 'prop-types';
+
import React from 'react';
export default class Textbox extends React.Component {
static propTypes = {
- id: React.PropTypes.string.isRequired,
- channelId: React.PropTypes.string,
- value: React.PropTypes.string.isRequired,
- onChange: React.PropTypes.func.isRequired,
- onKeyPress: React.PropTypes.func.isRequired,
- createMessage: React.PropTypes.string.isRequired,
- previewMessageLink: React.PropTypes.string,
- onKeyDown: React.PropTypes.func,
- onBlur: React.PropTypes.func,
- supportsCommands: React.PropTypes.bool.isRequired,
- handlePostError: React.PropTypes.func,
- suggestionListStyle: React.PropTypes.string,
- emojiEnabled: React.PropTypes.bool
+ id: PropTypes.string.isRequired,
+ channelId: PropTypes.string,
+ value: PropTypes.string.isRequired,
+ onChange: PropTypes.func.isRequired,
+ onKeyPress: PropTypes.func.isRequired,
+ createMessage: PropTypes.string.isRequired,
+ previewMessageLink: PropTypes.string,
+ onKeyDown: PropTypes.func,
+ onBlur: PropTypes.func,
+ supportsCommands: PropTypes.bool.isRequired,
+ handlePostError: PropTypes.func,
+ suggestionListStyle: PropTypes.string,
+ emojiEnabled: PropTypes.bool
};
static defaultProps = {