summaryrefslogtreecommitdiffstats
path: root/web/react/components/invite_member_modal.jsx
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-11-23 10:52:52 -0500
committerhmhealey <harrisonmhealey@gmail.com>2015-11-23 12:11:11 -0500
commit388dc6c89c62133c3c5fd1c3bb5ec0327cf5be6d (patch)
tree42b0d26b00915c755fe160f775cac26b13c353e0 /web/react/components/invite_member_modal.jsx
parent6016f91358fa81c01de72011bb34c98cf2851751 (diff)
downloadchat-388dc6c89c62133c3c5fd1c3bb5ec0327cf5be6d.tar.gz
chat-388dc6c89c62133c3c5fd1c3bb5ec0327cf5be6d.tar.bz2
chat-388dc6c89c62133c3c5fd1c3bb5ec0327cf5be6d.zip
Moved show static methods out of modals and into EventHelpers
Diffstat (limited to 'web/react/components/invite_member_modal.jsx')
-rw-r--r--web/react/components/invite_member_modal.jsx12
1 files changed, 2 insertions, 10 deletions
diff --git a/web/react/components/invite_member_modal.jsx b/web/react/components/invite_member_modal.jsx
index 59e3a2697..76f52faa9 100644
--- a/web/react/components/invite_member_modal.jsx
+++ b/web/react/components/invite_member_modal.jsx
@@ -4,13 +4,12 @@
import * as utils from '../utils/utils.jsx';
import Constants from '../utils/constants.jsx';
const ActionTypes = Constants.ActionTypes;
-import AppDispatcher from '../dispatcher/app_dispatcher.jsx';
import * as Client from '../utils/client.jsx';
+import * as EventHelpers from '../dispatcher/event_helpers.jsx';
import ModalStore from '../stores/modal_store.jsx';
import UserStore from '../stores/user_store.jsx';
import TeamStore from '../stores/team_store.jsx';
import ConfirmModal from './confirm_modal.jsx';
-import GetTeamInviteLinkModal from './get_team_invite_link_modal.jsx';
const Modal = ReactBootstrap.Modal;
@@ -193,7 +192,7 @@ export default class InviteMemberModal extends React.Component {
showGetTeamInviteLinkModal() {
this.handleHide(false);
- GetTeamInviteLinkModal.show();
+ EventHelpers.showGetTeamInviteLinkModal();
}
render() {
@@ -409,13 +408,6 @@ export default class InviteMemberModal extends React.Component {
return null;
}
-
- static show() {
- AppDispatcher.handleViewAction({
- type: ActionTypes.TOGGLE_INVITE_MEMBER_MODAL,
- value: true
- });
- }
}
InviteMemberModal.propTypes = {