insomnia/app/ui/components/base/dropdown/dropdown-divider.js
Gregory Schier 8452e8b777 Some eslint refactoring (#109)
* Fixed duplication kve bug

* Some changes

* Add proptypes linting

* Fixed proptypes even more

* Filename linting
2017-03-07 21:52:17 -08:00

28 lines
550 B
JavaScript

import React, {PropTypes, PureComponent} from 'react';
import classnames from 'classnames';
class DropdownDivider extends PureComponent {
render () {
const {children} = this.props;
const classes = classnames(
'dropdown__divider',
{'dropdown__divider--no-name': !children}
);
return (
<li className={classes}>
<span className="dropdown__divider__label">
{children}
</span>
</li>
);
}
}
DropdownDivider.propTypes = {
children: PropTypes.node
};
export default DropdownDivider;