diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-12-03 10:31:05 -0500 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-12-03 10:31:05 -0500 |
commit | d09ace15f24c396fb60809185047adee6db1ab08 (patch) | |
tree | 13f6ff624277d7b63d0bf18b6f3a5f25663ad7d4 /web/react/components/posts_view_container.jsx | |
parent | ffd5d554659816ac0fd24f1470fe7ee6dfe7ba50 (diff) | |
download | chat-d09ace15f24c396fb60809185047adee6db1ab08.tar.gz chat-d09ace15f24c396fb60809185047adee6db1ab08.tar.bz2 chat-d09ace15f24c396fb60809185047adee6db1ab08.zip |
Switched ChannelInviteModal to use a ToggleModalButton wherever possible
Diffstat (limited to 'web/react/components/posts_view_container.jsx')
-rw-r--r-- | web/react/components/posts_view_container.jsx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/web/react/components/posts_view_container.jsx b/web/react/components/posts_view_container.jsx index 6d6694fec..6dff2a644 100644 --- a/web/react/components/posts_view_container.jsx +++ b/web/react/components/posts_view_container.jsx @@ -3,7 +3,6 @@ import PostsView from './posts_view.jsx'; import LoadingScreen from './loading_screen.jsx'; -import ChannelInviteModal from './channel_invite_modal.jsx'; import ChannelStore from '../stores/channel_store.jsx'; import PostStore from '../stores/post_store.jsx'; @@ -177,7 +176,7 @@ export default class PostsViewContainer extends React.Component { loadMorePostsBottomClicked={() => {}} showMoreMessagesTop={!this.state.atTop[this.state.currentChannelIndex]} showMoreMessagesBottom={false} - introText={channel ? createChannelIntroMessage(channel, () => this.setState({showInviteModal: true})) : null} + introText={channel ? createChannelIntroMessage(channel) : null} messageSeparatorTime={this.state.currentLastViewed} /> ); @@ -194,10 +193,6 @@ export default class PostsViewContainer extends React.Component { return ( <div id='post-list'> {postListCtls} - <ChannelInviteModal - show={this.state.showInviteModal} - onModalDismissed={() => this.setState({showInviteModal: false})} - /> </div> ); } |