Replaced ReactChild type with ReactNode type

This commit is contained in:
DrMint 2022-03-04 23:21:31 +01:00
parent 9d90828a76
commit 67aa30c2f7
3 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ type ButtonProps = {
id?: string; id?: string;
className?: string; className?: string;
href?: string; href?: string;
children: React.ReactChild | React.ReactChild[]; children: React.ReactNode;
active?: boolean; active?: boolean;
locale?: string; locale?: string;
onClick?: MouseEventHandler<HTMLDivElement>; onClick?: MouseEventHandler<HTMLDivElement>;

View File

@ -1,6 +1,6 @@
type ChipProps = { type ChipProps = {
className?: string; className?: string;
children: React.ReactChild | React.ReactChild[]; children: React.ReactNode;
"data-tip"?: string; "data-tip"?: string;
"data-for"?: string; "data-for"?: string;
"data-html"?: boolean; "data-html"?: boolean;

View File

@ -1,6 +1,6 @@
type InsetBoxProps = { type InsetBoxProps = {
className?: string; className?: string;
children: React.ReactChild | React.ReactChild[]; children: React.ReactNode;
id?: string; id?: string;
}; };