How to use the kpc-react/components/dialog.confirm function in kpc-react

To help you get started, we’ve selected a few kpc-react examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ksc-fe / kpc / components / dialog / demos / terminate / index.jsx View on Github external
_terminate() {
        Dialog.confirm({
            content: 'Are you sure you want to close the dialog?'
        }).then(() => {
            this.setState({show: false});
        }, () => {});
    }