From 05145be2c2938c1f7c46b30347d5de2ed5cb4e2b Mon Sep 17 00:00:00 2001 From: Tal Koren Date: Thu, 21 Dec 2023 14:08:35 +0200 Subject: [PATCH] fix: change Box/Menu children types to ElementContent (#1839) --- src/components/Box/Box.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Box/Box.tsx b/src/components/Box/Box.tsx index cfdad16268..2f898d7b07 100644 --- a/src/components/Box/Box.tsx +++ b/src/components/Box/Box.tsx @@ -1,4 +1,4 @@ -import React, { forwardRef, ReactElement, useRef } from "react"; +import React, { forwardRef, useRef } from "react"; import cx from "classnames"; import useMergeRef from "../../hooks/useMergeRef"; import { @@ -44,12 +44,12 @@ import { Shadow, DISABLED } from "./BoxConstants"; -import { ValueOf, VibeComponent, VibeComponentProps, withStaticProps } from "../../types"; +import { ValueOf, VibeComponent, VibeComponentProps, withStaticProps, ElementContent } from "../../types"; import styles from "./Box.module.scss"; interface BoxProps extends VibeComponentProps { elementType?: keyof JSX.IntrinsicElements | string; - children?: ReactElement | ReactElement[]; + children?: ElementContent; disabled?: boolean; border?: ValueOf; borderColor?: ValueOf;