Add speed limit dropdown

This commit is contained in:
John Furrow
2015-12-15 23:30:22 -08:00
parent 2d060b4065
commit e356c5fbc2
3 changed files with 85 additions and 8 deletions

View File

@@ -12,7 +12,6 @@ const methodsToBind = [
];
export default class SortDropdown extends React.Component {
constructor() {
super();
@@ -49,7 +48,7 @@ export default class SortDropdown extends React.Component {
return (
<div className="dropdown__content">
<div className="dropdown__header">
{this.props.header()}
{this.props.header}
</div>
<ul className="dropdown__items">
{menuItems}
@@ -95,7 +94,7 @@ export default class SortDropdown extends React.Component {
return (
<div className={classes} onClick={this.onDropdownClick}>
{this.props.header()}
{this.props.header}
<CSSTransitionGroup
transitionName="dropdown__content"
transitionEnterTimeout={250}
@@ -105,5 +104,4 @@ export default class SortDropdown extends React.Component {
</div>
);
}
}