// Copyright (c) 2015 Spinpunch, Inc. All Rights Reserved. // See License.txt for license information. var AdminSidebarHeader = require('./admin_sidebar_header.jsx'); export default class AdminSidebar extends React.Component { constructor(props) { super(props); this.isSelected = this.isSelected.bind(this); this.handleClick = this.handleClick.bind(this); this.state = { }; } handleClick(name, e) { e.preventDefault(); this.props.selectTab(name); } isSelected(name) { if (this.props.selected === name) { return 'active'; } return ''; } componentDidMount() { } render() { return (
); } } AdminSidebar.propTypes = { selected: React.PropTypes.string, selectTab: React.PropTypes.func };