Browse Source

updated the message dialog style and default proceed button style

Abhinav-grd 4 years ago
parent
commit
00621b5d77
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/components/MessageDialog.tsx

+ 5 - 2
src/components/MessageDialog.tsx

@@ -64,9 +64,12 @@ export default function MessageDialog({
                 {attributes.proceed && (
                     <Button
                         variant={`outline-${
-                            attributes.proceed?.variant ?? 'success'
+                            attributes.proceed?.variant ?? 'primary'
                         }`}
-                        onClick={attributes.proceed.action}
+                        onClick={() => {
+                            attributes.proceed.action();
+                            props.onHide();
+                        }}
                         style={{ padding: '6px 3em', marginRight: '20px' }}
                         disabled={attributes.proceed.disabled}
                     >