Skip to content

Commit

Permalink
Use ReactElement
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed May 14, 2024
1 parent a2b2784 commit af2878a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/dataviews/src/item-actions.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* External dependencies
*/
import type { MouseEventHandler } from 'react';
import type { MouseEventHandler, ReactElement } from 'react';

/**
* WordPress dependencies
Expand Down Expand Up @@ -51,7 +51,7 @@ interface ActionModalProps {
interface ActionWithModalProps extends ActionModalProps {
ActionTrigger: (
props: ButtonTriggerProps | DropdownMenuItemTriggerProps
) => JSX.Element;
) => ReactElement;
isBusy?: boolean;
}

Expand Down
4 changes: 2 additions & 2 deletions packages/dataviews/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { IconType } from '@wordpress/components';
/**
* External dependencies
*/
import type { ReactNode } from 'react';
import type { ReactElement, ReactNode } from 'react';

interface Option {
value: any;
Expand Down Expand Up @@ -221,7 +221,7 @@ export interface ActionModal extends ActionBase {
closeModal?: () => void;
onActionStart?: ( items: Item[] ) => void;
onActionPerformed?: ( items: Item[] ) => void;
} ) => JSX.Element;
} ) => ReactElement;

/**
* Whether to hide the modal header.
Expand Down

0 comments on commit af2878a

Please sign in to comment.