Make onClose required in Modal

This commit is contained in:
David Baker
2022-11-07 12:23:21 +00:00
parent 509fd65156
commit 51572b5787
3 changed files with 12 additions and 3 deletions

View File

@@ -24,11 +24,13 @@ import { Body } from "./typography/Typography";
interface Props {
userIds: Set<string>;
room: Room;
onClose: () => void;
}
export const IncompatibleVersionModal: React.FC<Props> = ({
userIds,
room,
onClose,
...rest
}) => {
const { t } = useTranslation();
@@ -38,7 +40,12 @@ export const IncompatibleVersionModal: React.FC<Props> = ({
);
return (
<Modal title={t("Incompatible versions")} isDismissable {...rest}>
<Modal
title={t("Incompatible versions")}
isDismissable
onClose={onClose}
{...rest}
>
<ModalContent>
<Body>
<Trans>