Closed knicklabs closed 2 years ago
The button handlers were connected in reverse:
onCancel
onConfirm
This pull request is a small change to flip the usage of the button handlers:
That's it!
Adds 2 props cancelButtonProps and confirmButtonProps to pass any valid Button prop to each button.
cancelButtonProps
confirmButtonProps
122ec6d
View logs
@tinkertrain the new props look good!
Problem/Feature
The button handlers were connected in reverse:
onCancel
handler was connected to the "Confirm" button.onConfirm
handler was connected to the "Cancel" button.Solution
This pull request is a small change to flip the usage of the button handlers:
onCancel
handler is connected to the "Cancel" button.onConfirm
handler is connected to the "Confirm" button.That's it!
One more thing
Adds 2 props
cancelButtonProps
andconfirmButtonProps
to pass any valid Button prop to each button.