material-ui-confirm icon indicating copy to clipboard operation
material-ui-confirm copied to clipboard

Added support for confirmation keyword + Setup Prettier

Open TimMikeladze opened this issue 1 year ago • 1 comments

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.

TimMikeladze avatar Oct 19 '22 15:10 TimMikeladze

Hey @TimMikeladze! Thanks for the PR, a couple tiny comments and we can ship it :)

jonatanklosko avatar Oct 20 '22 23:10 jonatanklosko

@jonatanklosko Thanks for the review. I've addressed your comments.

TimMikeladze avatar Oct 21 '22 09:10 TimMikeladze