// Copyright (c) 2015 Spinpunch, Inc. All Rights Reserved. // See License.txt for license information. const SettingsSidebar = require('./settings_sidebar.jsx'); const TeamSettings = require('./team_settings.jsx'); export default class TeamSettingsModal extends React.Component { constructor(props) { super(props); this.updateTab = this.updateTab.bind(this); this.updateSection = this.updateSection.bind(this); this.state = { activeTab: 'general', activeSection: '' }; } componentDidMount() { $('body').on('click', '.modal-back', function handleBackClick() { $(this).closest('.modal-dialog').removeClass('display--content'); }); $('body').on('click', '.modal-header .close', function handleCloseClick() { setTimeout(function removeContent() { $('.modal-dialog.display--content').removeClass('display--content'); }, 500); }); } updateTab(tab) { this.setState({activeTab: tab, activeSection: ''}); } updateSection(section) { this.setState({activeSection: section}); } render() { let tabs = []; tabs.push({name: 'general', uiName: 'General', icon: 'glyphicon glyphicon-cog'}); tabs.push({name: 'import', uiName: 'Import', icon: 'glyphicon glyphicon-upload'}); tabs.push({name: 'export', uiName: 'Export', icon: 'glyphicon glyphicon-download'}); tabs.push({name: 'feature', uiName: 'Advanced', icon: 'glyphicon glyphicon-wrench'}); return (
); } } TeamSettingsModal.propTypes = { teamDisplayName: React.PropTypes.string.isRequired };