mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 15:13:21 +08:00
30 lines
624 B
React
30 lines
624 B
React
|
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;
|