insomnia/app/ui/components/base/dropdown/DropdownDivider.js
Gregory Schier b198e6170b React performance sweep (#96)
* Removed some unnecessary rendering

* Only PureComponents and some other stuff

* Removed all functional components

* Only deal with nunjucks marks

* Remove ref assign functions in modals

* Lots of tweaks

* A bit snappier

* A bit snappier
2017-02-28 13:32:23 -08:00

26 lines
511 B
JavaScript

import React, {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 = {};
export default DropdownDivider;