From aa1fe83596042d75b67b98c28b82138db6df5bb5 Mon Sep 17 00:00:00 2001 From: Karine Brandelli Padilha Date: Mon, 23 Dec 2024 16:02:58 -0300 Subject: [PATCH] chore: replace flex for native flexGrow --- src/core/data-display/typography/index.tsx | 8 +------- src/core/feedback/nothing-found/index.tsx | 2 +- src/core/surfaces/card/index.tsx | 2 +- src/core/surfaces/panel/index.tsx | 2 +- 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/core/data-display/typography/index.tsx b/src/core/data-display/typography/index.tsx index 0d23d3d5..da0ff0df 100644 --- a/src/core/data-display/typography/index.tsx +++ b/src/core/data-display/typography/index.tsx @@ -3,12 +3,6 @@ import MuiTypography from '@mui/material/Typography' import type { DefaultProps } from '../../types' import type { TypographyProps } from '@mui/material/Typography' -type ITypography = { - flex?: number -} - -type CustomTypographyProps = ITypography & TypographyProps & DefaultProps - const Typography = ({ children, margin, @@ -16,7 +10,7 @@ const Typography = ({ style = {}, variant = 'body2', ...otherProps -}: CustomTypographyProps) => ( +}: TypographyProps & DefaultProps) => ( { return show ? ( { {title && ( {title} diff --git a/src/core/surfaces/panel/index.tsx b/src/core/surfaces/panel/index.tsx index cdad21be..1528a64e 100644 --- a/src/core/surfaces/panel/index.tsx +++ b/src/core/surfaces/panel/index.tsx @@ -73,7 +73,7 @@ const Panel = (props: PanelProps) => { !hideSummary && ( {title && ( - + {title} )}