Manav Rathi 1 gadu atpakaļ
vecāks
revīzija
d51fb99fd3

+ 8 - 3
web/packages/shared/components/DialogBox/TitleWithCloseButton.tsx

@@ -6,12 +6,17 @@ import {
     Typography,
     Typography,
     type DialogProps,
     type DialogProps,
 } from "@mui/material";
 } 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<DialogTitleWithCloseButtonProps>
+> = ({ children, onClose }) => {
     return (
     return (
-        <DialogTitle {...other}>
+        <DialogTitle>
             <SpaceBetweenFlex>
             <SpaceBetweenFlex>
                 <Typography variant="h3" fontWeight={"bold"}>
                 <Typography variant="h3" fontWeight={"bold"}>
                     {children}
                     {children}