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

Button ordering #7

Closed mribbons closed 6 years ago

mribbons commented 6 years ago

Is it possible to have display confirm button before cancel button?

I know I can do this by swapping the order in the code, eg:

confirmAlert({
    title: 'Confirm',                        // Title dialog
    message: `Are you sure?`,               // Message dialog
    confirmLabel: 'No',                           // Text button confirm
    cancelLabel: 'Yes',                             // Text button cancel
});

But it feels messy.

BhavikModi commented 6 years ago

@mribbons do you have any solution on this?

mribbons commented 6 years ago

@BhavikModi nope, probably the solution is to clone to a new repo and make changes. I don't see the original devs breaking their code.

GA-MO commented 6 years ago

Solve this in version 2