mirror of
https://github.com/Kong/insomnia
synced 2024-11-12 17:26:32 +00:00
8452e8b777
* Fixed duplication kve bug * Some changes * Add proptypes linting * Fixed proptypes even more * Filename linting
28 lines
550 B
JavaScript
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;
|