Fix the rest of TS errors in automations codebase
[MAILPOET-5714]
This commit is contained in:
committed by
Aschepikov
parent
cb7ae2a442
commit
8431ec33e1
@@ -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<SetStateAction<boolean>>) => void;
|
||||
|
@@ -6,7 +6,7 @@ export type FormTokenItem = {
|
||||
};
|
||||
|
||||
export type FormTokenFieldProps = Omit<
|
||||
WpFormTokenField.Props,
|
||||
React.ComponentProps<typeof WpFormTokenField>,
|
||||
'value' | 'suggestions' | 'onChange'
|
||||
> & {
|
||||
value: FormTokenItem[];
|
||||
|
@@ -1,7 +1,7 @@
|
||||
import { PanelBody as WpPanelBody } from '@wordpress/components';
|
||||
import { useEffect, useState } from 'react';
|
||||
|
||||
type Props = WpPanelBody.Props & {
|
||||
type Props = React.ComponentProps<typeof WpPanelBody> & {
|
||||
hasErrors?: boolean;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user