From fc78c916a1c1c92d8f4e3dd07d2344c87da214f6 Mon Sep 17 00:00:00 2001 From: Max Frederiksen <max.frederiksen@ess.eu> Date: Wed, 19 Mar 2025 16:03:40 +0100 Subject: [PATCH] CE-3632: Revert optional children prop + bump 20.0.0 --- .../common/EllipsisText/EllipsisText.tsx | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/src/components/common/EllipsisText/EllipsisText.tsx b/src/components/common/EllipsisText/EllipsisText.tsx index 3db3d23..b2715a8 100644 --- a/src/components/common/EllipsisText/EllipsisText.tsx +++ b/src/components/common/EllipsisText/EllipsisText.tsx @@ -4,12 +4,11 @@ import { TypographyProps, TooltipProps } from "@mui/material"; -import { EmptyValue } from "../EmptyValue"; export interface EllipsisTextProps { TypographyProps?: TypographyProps; TooltipProps?: TooltipProps; - children?: string; + children: string; } export const EllipsisText = ({ @@ -23,16 +22,12 @@ export const EllipsisText = ({ arrow {...TooltipProps} > - {children ? ( - <Typography - noWrap - {...TypographyProps} - > - {children} - </Typography> - ) : ( - <EmptyValue /> - )} + <Typography + noWrap + {...TypographyProps} + > + {children} + </Typography> </Tooltip> ); }; -- GitLab