Converted DeleteChannelModal to React-Bootstrap

Этот коммит содержится в:
hmhealey
2015-11-17 11:10:33 -05:00
родитель 69e378c556
Коммит 3d572be2f3
4 изменённых файлов: 53 добавлений и 93 удалений

Просмотреть файл

@@ -8,6 +8,7 @@ const ChannelMembersModal = require('./channel_members_modal.jsx');
const ChannelInfoModal = require('./channel_info_modal.jsx');
const ChannelInviteModal = require('./channel_invite_modal.jsx');
const ChannelNotificationsModal = require('./channel_notifications_modal.jsx');
const DeleteChannelModal = require('./delete_channel_modal.jsx');
const ToggleModalButton = require('./toggle_modal_button.jsx');
const UserStore = require('../stores/user_store.jsx');
@@ -195,16 +196,13 @@ export default class Navbar extends React.Component {
deleteChannelOption = (
<li role='presentation'>
<a
<ToggleModalButton
role='menuitem'
href='#'
data-toggle='modal'
data-target='#delete_channel'
data-title={channel.display_name}
data-channelid={channel.id}
dialogType={DeleteChannelModal}
dialogProps={{channel}}
>
{'Delete Channel...'}
</a>
</ToggleModalButton>
</li>
);
}