Skip to content
Snippets Groups Projects
Commit fc78c916 authored by Max Frederiksen's avatar Max Frederiksen
Browse files

CE-3632: Revert optional children prop + bump 20.0.0

parent 1f88f828
No related branches found
No related tags found
1 merge request!223CE-3632: Autocomplete and EllipsisText
Pipeline #220011 passed
......@@ -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>
);
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment