Replaced ReactChild type with ReactNode type
This commit is contained in:
parent
9d90828a76
commit
67aa30c2f7
|
@ -5,7 +5,7 @@ type ButtonProps = {
|
|||
id?: string;
|
||||
className?: string;
|
||||
href?: string;
|
||||
children: React.ReactChild | React.ReactChild[];
|
||||
children: React.ReactNode;
|
||||
active?: boolean;
|
||||
locale?: string;
|
||||
onClick?: MouseEventHandler<HTMLDivElement>;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
type ChipProps = {
|
||||
className?: string;
|
||||
children: React.ReactChild | React.ReactChild[];
|
||||
children: React.ReactNode;
|
||||
"data-tip"?: string;
|
||||
"data-for"?: string;
|
||||
"data-html"?: boolean;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
type InsetBoxProps = {
|
||||
className?: string;
|
||||
children: React.ReactChild | React.ReactChild[];
|
||||
children: React.ReactNode;
|
||||
id?: string;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue