diff --git a/src/plugins/reviewDB/components/ReviewsView.tsx b/src/plugins/reviewDB/components/ReviewsView.tsx index e53e0bbd58..ed93a89c6f 100644 --- a/src/plugins/reviewDB/components/ReviewsView.tsx +++ b/src/plugins/reviewDB/components/ReviewsView.tsx @@ -156,6 +156,7 @@ export function ReviewsInputComponent( disableThemedBackground={true} setEditorRef={ref => editorRef.current = ref} parentModalKey={modalKey} + emojiPickerCloseOnModalOuterClick={true} textValue="" onSubmit={ async res => { diff --git a/src/plugins/reviewDB/utils.tsx b/src/plugins/reviewDB/utils.tsx index ec7609c505..3992c1df94 100644 --- a/src/plugins/reviewDB/utils.tsx +++ b/src/plugins/reviewDB/utils.tsx @@ -17,7 +17,7 @@ */ import { classNameFactory } from "@utils/css"; -import { Toasts, UserStore } from "@webpack/common"; +import { showToast as showToastCommon, Toasts, UserStore } from "@webpack/common"; import { Auth } from "./auth"; import { Review, UserType } from "./entities"; @@ -43,12 +43,7 @@ export function canReportReview(review: Review) { } export function showToast(message: string, type = Toasts.Type.MESSAGE) { - Toasts.show({ - id: Toasts.genId(), - message, - type, - options: { - position: Toasts.Position.BOTTOM, // NOBODY LIKES TOASTS AT THE TOP - }, + showToastCommon(message, type, { + position: Toasts.Position.BOTTOM, // NOBODY LIKES TOASTS AT THE TOP }); }