// Copyright (c) 2015 Spinpunch, Inc. All Rights Reserved. // See License.txt for license information. var SettingsSidebar = require('./settings_sidebar.jsx'); var UserSettings = require('./user_settings.jsx'); module.exports = React.createClass({ componentDidMount: function() { $('body').on('click', '.modal-back', function(){ $(this).closest('.modal-dialog').removeClass('display--content'); }); $('body').on('click', '.modal-header .close', function(){ setTimeout(function() { $('.modal-dialog.display--content').removeClass('display--content'); }, 500); }); }, updateTab: function(tab) { this.setState({ active_tab: tab }); }, updateSection: function(section) { this.setState({ active_section: section }); }, getInitialState: function() { return { active_tab: "general", active_section: "" }; }, render: function() { return ( ); } });