swal({ title: `Are you sure to delete this news posted by ${news.users.user_name} ?`, text: `Once deleted, you will not be able to recover this post!`, icon: "warning", buttons: true, dangerMode: true, }).then(willDelete => { if (willDelete) { this.props.deleteNewsPosts(news._id) } else { swal(`This news is safe!`) } }) }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)