diff --git a/mailpoet/assets/js/src/automation/editor/components/panel/activate-panel.tsx b/mailpoet/assets/js/src/automation/editor/components/panel/activate-panel.tsx index 23a4f21015..a039ab05f1 100644 --- a/mailpoet/assets/js/src/automation/editor/components/panel/activate-panel.tsx +++ b/mailpoet/assets/js/src/automation/editor/components/panel/activate-panel.tsx @@ -1,5 +1,6 @@ -import { useDispatch, useSelect } from '@wordpress/data'; +import { StoreDescriptor, useDispatch, useSelect } from '@wordpress/data'; import { Button } from '@wordpress/components'; +import { store as noticesStore } from '@wordpress/notices'; import { closeSmall } from '@wordpress/icons'; import { __ } from '@wordpress/i18n'; import { storeName } from '../../store'; @@ -8,11 +9,17 @@ import { MailPoet } from '../../../../mailpoet'; function PreStep({ onClose }): JSX.Element { const { activate } = useDispatch(storeName); + return ( <>