diff --git a/web/packages/shared/components/DialogBox/TitleWithCloseButton.tsx b/web/packages/shared/components/DialogBox/TitleWithCloseButton.tsx index 54ed1486d..35304b9cf 100644 --- a/web/packages/shared/components/DialogBox/TitleWithCloseButton.tsx +++ b/web/packages/shared/components/DialogBox/TitleWithCloseButton.tsx @@ -6,12 +6,17 @@ import { Typography, type DialogProps, } from "@mui/material"; +import React from "react"; -const DialogTitleWithCloseButton = (props) => { - const { children, onClose, ...other } = props; +interface DialogTitleWithCloseButtonProps { + onClose: () => void; +} +const DialogTitleWithCloseButton: React.FC< + React.PropsWithChildren +> = ({ children, onClose }) => { return ( - + {children}