From 2221b97cce87537a34f7283fc79d51d5ba0e161a Mon Sep 17 00:00:00 2001 From: dzucconi Date: Tue, 3 Sep 2024 09:43:47 -0400 Subject: [PATCH] fix(modaldialog): corrects type for title --- .../palette/src/elements/ModalDialog/ModalDialog.story.tsx | 3 +++ packages/palette/src/elements/ModalDialog/ModalDialog.tsx | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/palette/src/elements/ModalDialog/ModalDialog.story.tsx b/packages/palette/src/elements/ModalDialog/ModalDialog.story.tsx index 6bd826575..32812091d 100644 --- a/packages/palette/src/elements/ModalDialog/ModalDialog.story.tsx +++ b/packages/palette/src/elements/ModalDialog/ModalDialog.story.tsx @@ -122,6 +122,9 @@ export const Default = () => { title: "With custom z-index", zIndex: 1000, }, + { + title: Custom title, + }, ]} > {(props) => } diff --git a/packages/palette/src/elements/ModalDialog/ModalDialog.tsx b/packages/palette/src/elements/ModalDialog/ModalDialog.tsx index d190eb86f..acd11ba4c 100644 --- a/packages/palette/src/elements/ModalDialog/ModalDialog.tsx +++ b/packages/palette/src/elements/ModalDialog/ModalDialog.tsx @@ -8,7 +8,7 @@ import { splitBoxProps } from "../Box" import { useDidMount } from "../../utils/useDidMount" import { useTheme } from "../../Theme" -export type ModalDialogProps = ModalBaseProps & +export type ModalDialogProps = Omit & ModalDialogContentProps & { leftPanel?: React.ReactNode rightPanel?: React.ReactNode