Skip to content

Commit

Permalink
fix: better type for textApply property
Browse files Browse the repository at this point in the history
  • Loading branch information
ma-efremoff committed Mar 11, 2024
1 parent 5cbe743 commit 140ba2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dialog/Dialog/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ export interface DFDialogProps<
};
footerProps?: {
hidden?: boolean;
textApply?: string;
textApply?: React.ReactNode;
textCancel?: string;
content?: React.ReactNode;
propsButtonCancel?: DialogFooterProps['propsButtonCancel'];
Expand Down Expand Up @@ -1108,7 +1108,7 @@ class Dialog<
preset="default"
loading={formState.submitting}
textButtonCancel={textCancel}
textButtonApply={textApply}
textButtonApply={textApply as string}
propsButtonApply={{disabled, type: 'submit', ...propsButtonApply}}
propsButtonCancel={propsButtonCancel}
onClickButtonCancel={this.onClose}
Expand Down

0 comments on commit 140ba2c

Please sign in to comment.