diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-10-15 12:07:06 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-10-15 15:00:28 -0400 |
commit | 1571a9a2dfbe6dd3bb598a92f7f62e457b613241 (patch) | |
tree | c615bb285e59cc2fb9faa61bbbe02af858b9212b /web/react/components/new_channel_modal.jsx | |
parent | fda7a99e8ce15d51f1d7b2667015af2ef8ab1dec (diff) | |
download | chat-1571a9a2dfbe6dd3bb598a92f7f62e457b613241.tar.gz chat-1571a9a2dfbe6dd3bb598a92f7f62e457b613241.tar.bz2 chat-1571a9a2dfbe6dd3bb598a92f7f62e457b613241.zip |
Fixing most deprication warnings
Diffstat (limited to 'web/react/components/new_channel_modal.jsx')
-rw-r--r-- | web/react/components/new_channel_modal.jsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/react/components/new_channel_modal.jsx b/web/react/components/new_channel_modal.jsx index c3d9c046d..4e6280c99 100644 --- a/web/react/components/new_channel_modal.jsx +++ b/web/react/components/new_channel_modal.jsx @@ -25,7 +25,7 @@ export default class NewChannelModal extends React.Component { handleSubmit(e) { e.preventDefault(); - const displayName = React.findDOMNode(this.refs.display_name).value.trim(); + const displayName = ReactDOM.findDOMNode(this.refs.display_name).value.trim(); if (displayName.length < 1) { this.setState({displayNameError: 'This field is required'}); return; @@ -35,8 +35,8 @@ export default class NewChannelModal extends React.Component { } handleChange() { const newData = { - displayName: React.findDOMNode(this.refs.display_name).value, - description: React.findDOMNode(this.refs.channel_desc).value + displayName: ReactDOM.findDOMNode(this.refs.display_name).value, + description: ReactDOM.findDOMNode(this.refs.channel_desc).value }; this.props.onDataChanged(newData); } |