diff --git a/mailpoet/assets/js/src/automation/templates/components/template-detail.tsx b/mailpoet/assets/js/src/automation/templates/components/template-detail.tsx index 12716215bcf..9cc7bc2761e 100644 --- a/mailpoet/assets/js/src/automation/templates/components/template-detail.tsx +++ b/mailpoet/assets/js/src/automation/templates/components/template-detail.tsx @@ -18,7 +18,7 @@ import { MailPoet } from '../../../mailpoet'; // snackbar icon is not annotated in the types const Snackbar = WpSnackbar as ComponentType< - WpSnackbar.Props & { + React.ComponentProps & { icon: ReactNode; isDismissible?: boolean; explicitDismiss?: boolean; @@ -63,7 +63,7 @@ const useCreateFromTemplate = () => { type Props = { template: AutomationTemplate; - onRequestClose: Modal.Props['onRequestClose']; + onRequestClose: React.ComponentProps['onRequestClose']; onPreviousClick?: MouseEventHandler; onNextClick?: MouseEventHandler; };