// Copyright (c) 2015 Spinpunch, Inc. All Rights Reserved. // See License.txt for license information. export default class SettingsSidebar extends React.Component { constructor(props) { super(props); this.handleClick = this.handleClick.bind(this); } handleClick(tab, e) { e.preventDefault(); this.props.updateTab(tab.name); $('.settings-modal').addClass('display--content'); } render() { let tabList = this.props.tabs.map(function makeTab(tab) { let key = `${tab.name}_li`; let className = ''; if (this.props.activeTab === tab.name) { className = 'active'; } return (