diff --git a/src/components/ChallengeModal/ChallengeModal.tsx b/src/components/ChallengeModal/ChallengeModal.tsx index e4c53d4d1d..2e0d4566a2 100644 --- a/src/components/ChallengeModal/ChallengeModal.tsx +++ b/src/components/ChallengeModal/ChallengeModal.tsx @@ -156,12 +156,26 @@ export class ChallengeModal extends Modal } export class ChallengeModalBody extends React.Component< - ChallengeModalProperties & { modal: ChallengeModal }, + ChallengeModalProperties & { + modal: { + close: () => void; + on: (event: "open" | "close", callback: () => void) => void; + off: (event: "open" | "close", callback: () => void) => void; + }; + }, any > { ref: React.RefObject = React.createRef(); - constructor(props: ChallengeModalProperties & { modal: ChallengeModal }) { + constructor( + props: ChallengeModalProperties & { + modal: { + close: () => void; + on: (event: "open" | "close", callback: () => void) => void; + off: (event: "open" | "close", callback: () => void) => void; + }; + }, + ) { super(props); const speed = data.get("challenge.speed", "live");