Add possibility of closing popups
This commit is contained in:
		@@ -22,9 +22,13 @@ class Popup extends Component {
 | 
			
		||||
    
 | 
			
		||||
    render() {
 | 
			
		||||
        return (
 | 
			
		||||
            <div className={`${this.state.visible ? "visible" : ""}` + " popup"}>
 | 
			
		||||
                {this.props.children}
 | 
			
		||||
            </div>
 | 
			
		||||
            <>
 | 
			
		||||
                <div className={`${this.state.visible ? "" : "hidden"}` + " popupClose"} onClick={this.hide} />
 | 
			
		||||
                
 | 
			
		||||
                <div className={`${this.state.visible ? "visible" : ""}` + " popup " + this.props.className}>
 | 
			
		||||
                    {this.props.children}
 | 
			
		||||
                </div>
 | 
			
		||||
            </>
 | 
			
		||||
        );
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user