Skip to content

Commit

Permalink
Replace complex type with ReactNode, thanks to Marco's suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
kienstra committed Oct 12, 2022
1 parent 54af17c commit c9f5d8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/components/src/color-palette/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* External dependencies
*/
import type { MouseEventHandler, ReactElement } from 'react';
import type { MouseEventHandler, ReactNode } from 'react';

type OnColorChange = ( newColor?: string ) => void;

Expand All @@ -20,7 +20,7 @@ type PaletteProps = {
clearColor: () => void;
onChange: OnColorChange;
value?: string;
actions: ( ReactElement | null ) | ( false | ReactElement );
actions: ReactNode;
};

export type SinglePaletteProps = PaletteProps & {
Expand Down

0 comments on commit c9f5d8a

Please sign in to comment.