refactor: alert styles

This commit is contained in:
Aman Harwara
2023-01-16 19:52:10 +05:30
parent dfa0e164bb
commit bb6e655d2f
7 changed files with 72 additions and 42 deletions

View File

@@ -22,7 +22,7 @@ export function confirmDialog({
buttons: [
{
text: cancelButtonText,
style: 'neutral',
style: 'default',
action() {
resolve(false)
},
@@ -30,6 +30,7 @@ export function confirmDialog({
{
text: confirmButtonText,
style: confirmButtonStyle,
primary: true,
action() {
resolve(true)
},
@@ -56,7 +57,7 @@ export function alertDialog({
buttons: [
{
text: closeButtonText,
style: 'neutral',
style: 'default',
action: resolve,
},
],