From 509fd6515604b4d0ee2336bf88b2037daea9012d Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 4 Nov 2022 17:56:37 +0000 Subject: [PATCH] Fix close button on join call modal It just errored as we didn't pass onClose through to the modal --- src/home/JoinExistingCallModal.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/home/JoinExistingCallModal.tsx b/src/home/JoinExistingCallModal.tsx index 8f4f7d7f..b04c6ae5 100644 --- a/src/home/JoinExistingCallModal.tsx +++ b/src/home/JoinExistingCallModal.tsx @@ -25,7 +25,7 @@ import styles from "./JoinExistingCallModal.module.css"; interface Props { onJoin: (e: PressEvent) => void; - onClose: (e: PressEvent) => void; + onClose: () => void; // TODO: add used parameters for [index: string]: unknown; } @@ -33,7 +33,12 @@ export function JoinExistingCallModal({ onJoin, onClose, ...rest }: Props) { const { t } = useTranslation(); return ( - +

{t("This call already exists, would you like to join?")}