From 2e72987bcab2da885958b57cda4ee06ab627a29e Mon Sep 17 00:00:00 2001 From: Abhinav Date: Fri, 13 May 2022 14:22:04 +0530 Subject: [PATCH] use button props instea dof custom color --- src/components/MessageDialog/index.tsx | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/components/MessageDialog/index.tsx b/src/components/MessageDialog/index.tsx index 19bfbcef3..3b8a5f6ca 100644 --- a/src/components/MessageDialog/index.tsx +++ b/src/components/MessageDialog/index.tsx @@ -3,6 +3,7 @@ import constants from 'utils/strings/constants'; import { Breakpoint, Button, + ButtonProps, Dialog, DialogActions, DialogContent, @@ -11,25 +12,20 @@ import { } from '@mui/material'; import DialogTitleWithCloseButton from './TitleWithCloseButton'; -export type ButtonColors = - | 'inherit' - | 'secondary' - | 'primary' - | 'success' - | 'error' - | 'info' - | 'warning' - | 'danger'; export interface MessageAttributes { title?: string; staticBackdrop?: boolean; nonClosable?: boolean; content?: any; - close?: { text?: string; variant?: ButtonColors; action?: () => void }; + close?: { + text?: string; + variant?: ButtonProps['color']; + action?: () => void; + }; proceed?: { text: string; action: () => void; - variant: ButtonColors; + variant: ButtonProps['color']; disabled?: boolean; }; }