update dialogBox

This commit is contained in:
Abhinav 2022-05-24 14:35:41 +05:30
parent 68bbcfadff
commit b3e77efec1
2 changed files with 2 additions and 2 deletions

View file

@ -18,6 +18,7 @@ type IProps = React.PropsWithChildren<
onClose: () => void;
attributes: DialogBoxAttributes;
size?: Breakpoint;
titleCloseButton?: boolean;
}
>;
@ -46,7 +47,7 @@ export default function DialogBox({ attributes, children, ...props }: IProps) {
<DialogTitleWithCloseButton
onClose={
!attributes?.nonClosable &&
attributes?.close?.titleCloseButton &&
props.titleCloseButton &&
handleClose
}>
{attributes.title}

View file

@ -9,7 +9,6 @@ export interface DialogBoxAttributes {
text?: string;
variant?: ButtonProps['color'];
action?: () => void;
titleCloseButton?: boolean;
};
proceed?: {
text: string;