Skip to content

Commit

Permalink
Merge pull request #1398 from artsy/DIA-784-web-build-new-sign-up-log…
Browse files Browse the repository at this point in the history
…in-flow--2

fix(modaldialog): corrects type for title
  • Loading branch information
dzucconi authored Sep 3, 2024
2 parents c524b37 + 2221b97 commit b098634
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ export const Default = () => {
title: "With custom z-index",
zIndex: 1000,
},
{
title: <Box bg="red">Custom title</Box>,
},
]}
>
{(props) => <Demo {...props} />}
Expand Down
2 changes: 1 addition & 1 deletion packages/palette/src/elements/ModalDialog/ModalDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<ModalBaseProps, "title"> &
ModalDialogContentProps & {
leftPanel?: React.ReactNode
rightPanel?: React.ReactNode
Expand Down

0 comments on commit b098634

Please sign in to comment.