update dialogBox
This commit is contained in:
parent
68bbcfadff
commit
b3e77efec1
|
@ -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}
|
||||
|
|
|
@ -9,7 +9,6 @@ export interface DialogBoxAttributes {
|
|||
text?: string;
|
||||
variant?: ButtonProps['color'];
|
||||
action?: () => void;
|
||||
titleCloseButton?: boolean;
|
||||
};
|
||||
proceed?: {
|
||||
text: string;
|
||||
|
|
Loading…
Reference in a new issue