summaryrefslogtreecommitdiffstats
path: root/web/react/utils
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/utils
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/utils')
-rw-r--r--web/react/utils/channel_intro_mssages.jsx7
1 files changed, 3 insertions, 4 deletions
diff --git a/web/react/utils/channel_intro_mssages.jsx b/web/react/utils/channel_intro_mssages.jsx
index 70f3e9534..6f83778c9 100644
--- a/web/react/utils/channel_intro_mssages.jsx
+++ b/web/react/utils/channel_intro_mssages.jsx
@@ -3,13 +3,12 @@
import * as Utils from './utils.jsx';
import EditChannelHeaderModal from '../components/edit_channel_header_modal.jsx';
-import GetTeamInviteLinkModal from '../components/get_team_invite_link_modal.jsx';
-import InviteMemberModal from '../components/invite_member_modal.jsx';
import ToggleModalButton from '../components/toggle_modal_button.jsx';
import UserProfile from '../components/user_profile.jsx';
import ChannelStore from '../stores/channel_store.jsx';
import Constants from '../utils/constants.jsx';
import TeamStore from '../stores/team_store.jsx';
+import * as EventHelpers from '../dispatcher/event_helpers.jsx';
export function createChannelIntroMessage(channel, showInviteModal) {
if (channel.type === 'D') {
@@ -91,7 +90,7 @@ export function createDefaultIntroMessage(channel) {
<a
className='intro-links'
href='#'
- onClick={InviteMemberModal.show}
+ onClick={EventHelpers.showInviteMemberModal}
>
<i className='fa fa-user-plus'></i>{'Invite others to this team'}
</a>
@@ -101,7 +100,7 @@ export function createDefaultIntroMessage(channel) {
<a
className='intro-links'
href='#'
- onClick={GetTeamInviteLinkModal.show}
+ onClick={EventHelpers.showGetTeamInviteLinkModal}
>
<i className='fa fa-user-plus'></i>{'Invite others to this team'}
</a>