From 7315d69474b6fc8fd1d208224195a75455f1665e Mon Sep 17 00:00:00 2001 From: enahum Date: Mon, 28 Nov 2016 12:38:33 -0300 Subject: Fix some react natives warning messages (#4653) --- webapp/components/autosize_textarea.jsx | 12 +++++++++--- webapp/components/change_url_modal.jsx | 2 +- webapp/components/channel_header.jsx | 15 ++++++++++++--- webapp/components/new_channel_modal.jsx | 21 ++++++--------------- .../components/post_view/components/post_body.jsx | 2 +- webapp/components/sidebar_header_dropdown.jsx | 3 ++- webapp/components/status_icon.jsx | 4 ++-- webapp/components/suggestion/suggestion_box.jsx | 4 +++- .../user_settings/user_settings_general.jsx | 4 ++-- 9 files changed, 38 insertions(+), 29 deletions(-) (limited to 'webapp/components') diff --git a/webapp/components/autosize_textarea.jsx b/webapp/components/autosize_textarea.jsx index 873b1ff78..dc62dbe7e 100644 --- a/webapp/components/autosize_textarea.jsx +++ b/webapp/components/autosize_textarea.jsx @@ -53,11 +53,17 @@ export default class AutosizeTextarea extends React.Component { } render() { + const props = {...this.props}; + + Reflect.deleteProperty(props, 'onHeightChange'); + Reflect.deleteProperty(props, 'providers'); + Reflect.deleteProperty(props, 'channelId'); + const { value, placeholder, ...otherProps - } = this.props; + } = props; const heightProps = {}; if (this.height <= 0) { @@ -72,7 +78,7 @@ export default class AutosizeTextarea extends React.Component {