diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-11-10 13:23:10 -0500 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-11-17 11:04:32 -0500 |
commit | 66638c4f70adb3fa2777af03c6175347b8dbee6b (patch) | |
tree | a00bfa7e8d4f60b2dc891266fbf96b8c583ce5bc /web/react/components/navbar.jsx | |
parent | 590e7f903f3b911566465b2fb51ff68c273ded96 (diff) | |
download | chat-66638c4f70adb3fa2777af03c6175347b8dbee6b.tar.gz chat-66638c4f70adb3fa2777af03c6175347b8dbee6b.tar.bz2 chat-66638c4f70adb3fa2777af03c6175347b8dbee6b.zip |
Converted ChannelInfoModal to React-Bootstrap
Diffstat (limited to 'web/react/components/navbar.jsx')
-rw-r--r-- | web/react/components/navbar.jsx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/web/react/components/navbar.jsx b/web/react/components/navbar.jsx index 7ad1f9305..d587c1915 100644 --- a/web/react/components/navbar.jsx +++ b/web/react/components/navbar.jsx @@ -5,7 +5,9 @@ const EditChannelPurposeModal = require('./edit_channel_purpose_modal.jsx'); const MessageWrapper = require('./message_wrapper.jsx'); const NotifyCounts = require('./notify_counts.jsx'); const ChannelMembersModal = require('./channel_members_modal.jsx'); +const ChannelInfoModal = require('./channel_info_modal.jsx'); const ChannelInviteModal = require('./channel_invite_modal.jsx'); +const ToggleModalButton = require('./toggle_modal_button.jsx'); const UserStore = require('../stores/user_store.jsx'); const ChannelStore = require('../stores/channel_store.jsx'); @@ -104,15 +106,13 @@ export default class Navbar extends React.Component { if (channel) { var viewInfoOption = ( <li role='presentation'> - <a + <ToggleModalButton role='menuitem' - data-toggle='modal' - data-target='#channel_info' - data-channelid={channel.id} - href='#' + dialogType={ChannelInfoModal} + dialogProps={{channel}} > {'View Info'} - </a> + </ToggleModalButton> </li> ); |