From 1571a9a2dfbe6dd3bb598a92f7f62e457b613241 Mon Sep 17 00:00:00 2001
From: Christopher Speller <crspeller@gmail.com>
Date: Thu, 15 Oct 2015 12:07:06 -0400
Subject: Fixing most deprication warnings

---
 web/react/components/invite_member_modal.jsx | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

(limited to 'web/react/components/invite_member_modal.jsx')

diff --git a/web/react/components/invite_member_modal.jsx b/web/react/components/invite_member_modal.jsx
index c2f2c15ac..90290099d 100644
--- a/web/react/components/invite_member_modal.jsx
+++ b/web/react/components/invite_member_modal.jsx
@@ -36,7 +36,7 @@ export default class InviteMemberModal extends React.Component {
             var notEmpty = false;
             for (var i = 0; i < self.state.inviteIds.length; i++) {
                 var index = self.state.inviteIds[i];
-                if (React.findDOMNode(self.refs['email' + index]).value.trim() !== '') {
+                if (ReactDOM.findDOMNode(self.refs['email' + index]).value.trim() !== '') {
                     notEmpty = true;
                     break;
                 }
@@ -69,7 +69,7 @@ export default class InviteMemberModal extends React.Component {
         for (var i = 0; i < count; i++) {
             var index = inviteIds[i];
             var invite = {};
-            invite.email = React.findDOMNode(this.refs['email' + index]).value.trim();
+            invite.email = ReactDOM.findDOMNode(this.refs['email' + index]).value.trim();
             if (!invite.email || !utils.isEmail(invite.email)) {
                 emailErrors[index] = 'Please enter a valid email address';
                 valid = false;
@@ -77,9 +77,9 @@ export default class InviteMemberModal extends React.Component {
                 emailErrors[index] = '';
             }
 
-            invite.firstName = React.findDOMNode(this.refs['first_name' + index]).value.trim();
+            invite.firstName = ReactDOM.findDOMNode(this.refs['first_name' + index]).value.trim();
 
-            invite.lastName = React.findDOMNode(this.refs['last_name' + index]).value.trim();
+            invite.lastName = ReactDOM.findDOMNode(this.refs['last_name' + index]).value.trim();
 
             invites.push(invite);
         }
@@ -95,8 +95,8 @@ export default class InviteMemberModal extends React.Component {
 
         Client.inviteMembers(data,
             function success() {
-                $(React.findDOMNode(this.refs.modal)).attr('data-confirm', 'true');
-                $(React.findDOMNode(this.refs.modal)).modal('hide');
+                $(ReactDOM.findDOMNode(this.refs.modal)).attr('data-confirm', 'true');
+                $(ReactDOM.findDOMNode(this.refs.modal)).modal('hide');
             }.bind(this),
             function fail(err) {
                 if (err.message === 'This person is already on your team') {
@@ -110,8 +110,8 @@ export default class InviteMemberModal extends React.Component {
     }
 
     componentDidUpdate() {
-        $(React.findDOMNode(this.refs.modalBody)).css('max-height', $(window).height() - 200);
-        $(React.findDOMNode(this.refs.modalBody)).css('overflow-y', 'scroll');
+        $(ReactDOM.findDOMNode(this.refs.modalBody)).css('max-height', $(window).height() - 200);
+        $(ReactDOM.findDOMNode(this.refs.modalBody)).css('overflow-y', 'scroll');
     }
 
     addInviteFields() {
@@ -126,9 +126,9 @@ export default class InviteMemberModal extends React.Component {
 
         for (var i = 0; i < inviteIds.length; i++) {
             var index = inviteIds[i];
-            React.findDOMNode(this.refs['email' + index]).value = '';
-            React.findDOMNode(this.refs['first_name' + index]).value = '';
-            React.findDOMNode(this.refs['last_name' + index]).value = '';
+            ReactDOM.findDOMNode(this.refs['email' + index]).value = '';
+            ReactDOM.findDOMNode(this.refs['first_name' + index]).value = '';
+            ReactDOM.findDOMNode(this.refs['last_name' + index]).value = '';
         }
 
         this.setState({
-- 
cgit v1.2.3-1-g7c22

