Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

type for tsc

Manav Rathid51fb99fd31a
diff --git a/web/packages/shared/components/DialogBox/TitleWithCloseButton.tsx b/web/packages/shared/components/DialogBox/TitleWithCloseButton.tsx
index 54ed1486d9..35304b9cf0 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<DialogTitleWithCloseButtonProps>
+> = ({ children, onClose }) => {
return (
- <DialogTitle {...other}>
+ <DialogTitle>
<SpaceBetweenFlex>
<Typography variant="h3" fontWeight={"bold"}>
{children}