material-ui-confirm
material-ui-confirm copied to clipboard
Added support for confirmation keyword + Setup Prettier
Closes https://github.com/jonatanklosko/material-ui-confirm/issues/57
The following options have been added:
- confirmationKeyword
- confirmationKeywordTextFieldProps
- getConfirmationKeywordPlaceholder
If confirmationKeyword
is provided a TextField is rendered and the confirmation button is disabled. When the contents of the TextField match the value of confirmationKeyword
then the confirmation button becomes enabled.
Additional stories and tests have also been added for this behavior.
Also Prettier has been configured and formatted the existing codebase. @jonatanklosko If you don't want this specific commit I can resubmit the PR or you can cherry-pick the main commit over.
Hey @TimMikeladze! Thanks for the PR, a couple tiny comments and we can ship it :)
@jonatanklosko Thanks for the review. I've addressed your comments.