mirror of
https://github.com/Kong/insomnia
synced 2024-11-12 17:26:32 +00:00
b198e6170b
* 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
26 lines
511 B
JavaScript
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;
|