Replaced ReactChild type with ReactNode type
This commit is contained in:
parent
9d90828a76
commit
67aa30c2f7
|
@ -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>;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
type InsetBoxProps = {
|
type InsetBoxProps = {
|
||||||
className?: string;
|
className?: string;
|
||||||
children: React.ReactChild | React.ReactChild[];
|
children: React.ReactNode;
|
||||||
id?: string;
|
id?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue