Skip to content

Commit

Permalink
[Chore]: change types for modal (#1939)
Browse files Browse the repository at this point in the history
  • Loading branch information
igorDykhta committed Aug 24, 2022
1 parent f53117f commit c7ed4db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/common/modal.tsx
Expand Up @@ -146,8 +146,8 @@ interface ModalDialogOwnProps {
isOpen: boolean;
title?: string;
className?: string;
onConfirm: (...args: any) => any;
onCancel: (...args: any) => any;
onConfirm?: (...args: any) => void;
onCancel: (...args: any) => void;
confirmButton: object;
confirmButtonLabel?: string;
cancelButton: object;
Expand All @@ -165,8 +165,8 @@ export class ModalDialog extends Component<ModalDialogProps> {
static defaultProps = {
footer: false,
close: true,
onConfirm: () => {},
onCancel: () => {},
onConfirm: (): void => {},
onCancel: (): void => {},
cancelButton: defaultCancelButton,
confirmButton: defaultConfirmButton,
cssStyle: []
Expand Down

0 comments on commit c7ed4db

Please sign in to comment.