diff --git a/mailpoet/assets/js/src/automation/components/option-button/index.tsx b/mailpoet/assets/js/src/automation/components/option-button/index.tsx index ccb177e185..621c1e7287 100644 --- a/mailpoet/assets/js/src/automation/components/option-button/index.tsx +++ b/mailpoet/assets/js/src/automation/components/option-button/index.tsx @@ -1,11 +1,12 @@ import { Dispatch, SetStateAction, useState } from 'react'; import { Button, DropdownMenu } from '@wordpress/components'; +import { ButtonProps } from '@wordpress/components/build-types/button/types'; import { chevronDown } from '@wordpress/icons'; import { __ } from '@wordpress/i18n'; import { StepMoreControlsType } from '../../types/filters'; type OptionButtonPropType = { - variant: Button.ButtonVariant; + variant: ButtonProps['variant']; controls: StepMoreControlsType; title: string; onClick: (setIsBusy: Dispatch>) => void; diff --git a/mailpoet/assets/js/src/automation/editor/components/form-token-field/index.tsx b/mailpoet/assets/js/src/automation/editor/components/form-token-field/index.tsx index 55711a561f..b4f377b078 100644 --- a/mailpoet/assets/js/src/automation/editor/components/form-token-field/index.tsx +++ b/mailpoet/assets/js/src/automation/editor/components/form-token-field/index.tsx @@ -6,7 +6,7 @@ export type FormTokenItem = { }; export type FormTokenFieldProps = Omit< - WpFormTokenField.Props, + React.ComponentProps, 'value' | 'suggestions' | 'onChange' > & { value: FormTokenItem[]; diff --git a/mailpoet/assets/js/src/automation/editor/components/panel/panel-body.tsx b/mailpoet/assets/js/src/automation/editor/components/panel/panel-body.tsx index 3b08551861..6444d7aeb4 100644 --- a/mailpoet/assets/js/src/automation/editor/components/panel/panel-body.tsx +++ b/mailpoet/assets/js/src/automation/editor/components/panel/panel-body.tsx @@ -1,7 +1,7 @@ import { PanelBody as WpPanelBody } from '@wordpress/components'; import { useEffect, useState } from 'react'; -type Props = WpPanelBody.Props & { +type Props = React.ComponentProps & { hasErrors?: boolean; };