panel-header: Simplify condition

This commit is contained in:
Johannes Schill
2018-11-19 09:15:08 +01:00
parent 48d1a574b9
commit e5ea176a98
@@ -6,7 +6,7 @@ class Popover extends PureComponent<UsingPopperProps> {
render() {
const { children, hidePopper, showPopper, className, ...restProps } = this.props;
const togglePopper = restProps.show === true ? hidePopper : showPopper;
const togglePopper = restProps.show ? hidePopper : showPopper;
return (
<div className={`popper__manager ${className}`} onClick={togglePopper}>