Don't close submission menu if submission didn't go through

Fxies submission menu closing for warning about previewing a segment
This commit is contained in:
Ajay
2024-02-01 13:31:19 -05:00
parent c0bc068a18
commit e0fe0fad67
3 changed files with 16 additions and 10 deletions

View File

@@ -11,7 +11,7 @@ class SubmissionNotice {
// Contains functions and variables from the content script needed by the skip notice
contentContainer: () => unknown;
callback: () => unknown;
callback: () => Promise<boolean>;
noticeRef: React.MutableRefObject<SubmissionNoticeComponent>;
@@ -19,7 +19,7 @@ class SubmissionNotice {
root: Root;
constructor(contentContainer: ContentContainer, callback: () => unknown) {
constructor(contentContainer: ContentContainer, callback: () => Promise<boolean>) {
this.noticeRef = React.createRef();
this.contentContainer = contentContainer;