-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[dashboard] Harmonize confirmation dialog #4408
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Some minor comments
5b6ee0a
to
a7a1674
Compare
a7a1674
to
463148a
Compare
Thanks @corneliusludmann for fixing and @JanKoehnlein for reviewing this! |
|
||
export default function ConfirmationModal(props: { | ||
title?: string; | ||
areYouSureText?: string, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
praise: Nice one! Thanks for adding this abstraction based on the existing modals. 🔝
There are confirmation dialogs on different places where the code has be copied. In some cases, small deviations have been introduced unintentionally (slightly different shade of gray, etc.). For this reason, this PR introduces a common
ConfirmationModal
.This fixes also #4264, and #3701.
/cc @gtsiolis