24 lines
592 B
JavaScript
24 lines
592 B
JavaScript
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
|
|
});
|
|
}
|
|
|
|
}; |