diff --git a/mailpoet/assets/js/src/email-editor/engine/components/notices/notices.tsx b/mailpoet/assets/js/src/email-editor/engine/components/notices/notices.tsx index 0bf9736d1e..a435c6fcc9 100644 --- a/mailpoet/assets/js/src/email-editor/engine/components/notices/notices.tsx +++ b/mailpoet/assets/js/src/email-editor/engine/components/notices/notices.tsx @@ -32,7 +32,7 @@ export function EditorNotices() { removeNotice(id, 'email-editor')} /> diff --git a/mailpoet/assets/js/src/email-editor/engine/components/notices/snackbars.tsx b/mailpoet/assets/js/src/email-editor/engine/components/notices/snackbars.tsx index da95505e26..9c4d08a48d 100644 --- a/mailpoet/assets/js/src/email-editor/engine/components/notices/snackbars.tsx +++ b/mailpoet/assets/js/src/email-editor/engine/components/notices/snackbars.tsx @@ -20,7 +20,7 @@ export function EditorSnackbars() { removeNotice(id, 'email-editor')} /> ); } diff --git a/mailpoet/assets/js/src/types/wordpress-modules.ts b/mailpoet/assets/js/src/types/wordpress-modules.ts index e721c510b7..ab88721cfe 100644 --- a/mailpoet/assets/js/src/types/wordpress-modules.ts +++ b/mailpoet/assets/js/src/types/wordpress-modules.ts @@ -100,6 +100,7 @@ declare module '@wordpress/notices' { }; selectors: { getNotices(state: unknown, context?: string): Notice[]; + removeNotice(id: string, context?: string): void; }; }>; }