scinote-web/app/javascript/packs/shared/navigation/components/TeamSwitch.jsx

30 lines
624 B
React
Raw Normal View History

2017-08-02 23:27:05 +08:00
import React, { Component } from "react";
import PropTypes from "prop-types";
import { NavDropdown, MenuItem } from "react-bootstrap";
class TeamSwitch extends Component {
constructor(props) {
super(props);
this.state = { currentTeam: { name: "" }, allTeams: [] };
}
render() {
return (
<NavDropdown
eventKey={this.props.eventKey}
title={this.state.currentTeam.name}
id="team-switch"
>
<MenuItem eventKey={5.1}>Action</MenuItem>
</NavDropdown>
);
}
}
TeamSwitch.propTypes = {
eventKey: PropTypes.number.isRequired
}
export default TeamSwitch;