From 3166ee89d9b9c34936e5dd18892de47196741b6b Mon Sep 17 00:00:00 2001 From: Melloware Date: Fri, 5 Jan 2024 08:51:53 -0500 Subject: [PATCH] Fix #5692: Content is optional (#5693) --- components/lib/confirmpopup/confirmpopup.d.ts | 2 +- components/lib/dialog/dialog.d.ts | 2 +- components/lib/sidebar/sidebar.d.ts | 2 +- components/lib/toast/toast.d.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/lib/confirmpopup/confirmpopup.d.ts b/components/lib/confirmpopup/confirmpopup.d.ts index 6a7e9fc392..a2b1540680 100644 --- a/components/lib/confirmpopup/confirmpopup.d.ts +++ b/components/lib/confirmpopup/confirmpopup.d.ts @@ -284,7 +284,7 @@ export interface ConfirmPopupProps { * @param {ContentProps} props - The values of dialog. * @return {React.ReactNode} */ - content: React.ReactNode | ((props: ContentProps) => React.ReactNode); + content?: React.ReactNode | ((props: ContentProps) => React.ReactNode); } /** diff --git a/components/lib/dialog/dialog.d.ts b/components/lib/dialog/dialog.d.ts index e5727e9e00..c2ec9999a4 100644 --- a/components/lib/dialog/dialog.d.ts +++ b/components/lib/dialog/dialog.d.ts @@ -431,7 +431,7 @@ export interface DialogProps { * @param {ContentProps} props - The values of dialog. * @return {React.ReactNode} */ - content: React.ReactNode | ((props: ContentProps) => React.ReactNode); + content?: React.ReactNode | ((props: ContentProps) => React.ReactNode); } /** diff --git a/components/lib/sidebar/sidebar.d.ts b/components/lib/sidebar/sidebar.d.ts index bd9390e967..82ff6b0e5a 100644 --- a/components/lib/sidebar/sidebar.d.ts +++ b/components/lib/sidebar/sidebar.d.ts @@ -216,7 +216,7 @@ export interface SidebarProps extends Omit React.ReactNode); + content?: React.ReactNode | ((props: ContentProps) => React.ReactNode); } /** diff --git a/components/lib/toast/toast.d.ts b/components/lib/toast/toast.d.ts index 00a444a7cc..eaf527e061 100644 --- a/components/lib/toast/toast.d.ts +++ b/components/lib/toast/toast.d.ts @@ -306,7 +306,7 @@ export interface ToastProps extends Omit React.ReactNode); + content?: React.ReactNode | ((props: ContentProps) => React.ReactNode); } /**