%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/t/r/a/tradesc/www/relax/wp-content/plugins/complianz-gdpr/settings/src/Modal/
Upload File :
Create Path :
Current File : /home/t/r/a/tradesc/www/relax/wp-content/plugins/complianz-gdpr/settings/src/Modal/ModalControl.js

import {Component} from "@wordpress/element";

class ModalControl extends Component{
    constructor() {
        super( ...arguments );
    }
    componentDidMount() {
        this.onClickHandler = this.onClickHandler.bind(this);
    }

    onClickHandler(){
        this.props.handleModal(true, this.props.modalData );
    }

    render(){
        return (
            <button className={"button button-" + this.props.btnStyle} onClick={ (e) => this.onClickHandler(e) }>{this.props.btnText}</button>
        )
    }
}
export default ModalControl

Zerion Mini Shell 1.0