From a247ea2f77d0ad10faf63c3c798abb59c8b237d1 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Sun, 13 May 2018 22:43:20 +0100 Subject: [PATCH] delete duplicate propTypes(!!!) --- .../views/rooms/MessageComposerInput.js | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/src/components/views/rooms/MessageComposerInput.js b/src/components/views/rooms/MessageComposerInput.js index 8b72dc1a0b..756c9eb1a9 100644 --- a/src/components/views/rooms/MessageComposerInput.js +++ b/src/components/views/rooms/MessageComposerInput.js @@ -100,6 +100,8 @@ export default class MessageComposerInput extends React.Component { // called with current plaintext content (as a string) whenever it changes onContentChanged: PropTypes.func, + onFilesPasted: PropTypes.func, + onInputStateChanged: PropTypes.func, }; @@ -1292,19 +1294,3 @@ export default class MessageComposerInput extends React.Component { ); } } - -MessageComposerInput.propTypes = { - // a callback which is called when the height of the composer is - // changed due to a change in content. - onResize: PropTypes.func, - - // js-sdk Room object - room: PropTypes.object.isRequired, - - // called with current plaintext content (as a string) whenever it changes - onContentChanged: PropTypes.func, - - onFilesPasted: PropTypes.func, - - onInputStateChanged: PropTypes.func, -};