Skip to content

Add DialogProvider and ConfirmationDialog#78

Merged
mferrera merged 5 commits intomainfrom
modal-dialog
Jun 9, 2023
Merged

Add DialogProvider and ConfirmationDialog#78
mferrera merged 5 commits intomainfrom
modal-dialog

Conversation

@mferrera
Copy link
Collaborator

@mferrera mferrera commented May 25, 2023

This PR creates a context in which confirmation dialogs can be issued. It offers a way to customize the text displayed on the dialog and buttons, as well as executing callbacks passed to the Confirm and Cancel buttons.

Resolves #49
Resolves #52

@mferrera mferrera requested a review from rubenthoms May 25, 2023 08:10
Copy link
Collaborator

@rubenthoms rubenthoms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice UX. As we are only going to have one dialog open at once, I think the provider approach can work. We could also extend it with other dialog types as we see need (I guess that was your intention).

@mferrera mferrera merged commit e6162ac into main Jun 9, 2023
@mferrera mferrera deleted the modal-dialog branch June 9, 2023 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Add modal dialog component [FEATURE] Get user's confirmation before creating a user revision copy

2 participants