meraproject/content/modulebz/js/module/ui/BackgroundFocus.js

24 lines
592 B
JavaScript
Raw Normal View History

var BackgroundFocus;
export default window.BackgroundFocus = BackgroundFocus = class BackgroundFocus extends React.Component {
constructor(props) {
super(props);
this.state = {
visible: props.visible != null ? props.visible : props.visible = false
};
}
componentWillReceiveProps(props) {
var visible;
return this.setState(({
visible
} = props));
}
render() {
return /*#__PURE__*/React.createElement("div", {
className: ["background_focus", this.state.visible ? 'show' : ''].join(" "),
onClick: this.props.onClick
});
}
};