GA-MO / react-confirm-alert

react component confirm dialog.
https://ga-mo.github.io/react-confirm-alert/demo/
MIT License
272 stars 105 forks source link

It is possible to remove the cancel button #1

Closed EmmanuelSkapple closed 7 years ago

EmmanuelSkapple commented 7 years ago

I need only de accept button, It is possible?

GA-MO commented 7 years ago

Thanks for issue. I have fixed for the issue in (react-confirm-alert - v1.0.6) You just remove props that you do not want like this:

confirmAlert({
   title: 'Confirm to submit',
   message: 'Are you sure to do this.',
   confirmLabel: 'Confirm',
   onConfirm: () => alert('Action after Confirm')
})