From aabf8c9525d2e471c70e94368dee20acb2b6c239 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 22 May 2024 18:21:03 +0530 Subject: [PATCH] [material-ui][AlertTitle] Enable extending Typography props (@lucasgmelo) (#42334) Co-authored-by: Lucas Melo Co-authored-by: ZeeshanTamboli --- packages/mui-material/src/AlertTitle/AlertTitle.d.ts | 4 ++-- packages/mui-material/src/AlertTitle/AlertTitle.spec.tsx | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 packages/mui-material/src/AlertTitle/AlertTitle.spec.tsx diff --git a/packages/mui-material/src/AlertTitle/AlertTitle.d.ts b/packages/mui-material/src/AlertTitle/AlertTitle.d.ts index b9d7a90adae0e0..7af306b943d4d6 100644 --- a/packages/mui-material/src/AlertTitle/AlertTitle.d.ts +++ b/packages/mui-material/src/AlertTitle/AlertTitle.d.ts @@ -1,9 +1,9 @@ import * as React from 'react'; import { SxProps } from '@mui/system'; -import { InternalStandardProps as StandardProps, Theme } from '..'; +import { Theme, TypographyProps } from '..'; import { AlertTitleClasses } from './alertTitleClasses'; -export interface AlertTitleProps extends StandardProps> { +export interface AlertTitleProps extends TypographyProps<'div'> { /** * The content of the component. */ diff --git a/packages/mui-material/src/AlertTitle/AlertTitle.spec.tsx b/packages/mui-material/src/AlertTitle/AlertTitle.spec.tsx new file mode 100644 index 00000000000000..2eacadda90b0ed --- /dev/null +++ b/packages/mui-material/src/AlertTitle/AlertTitle.spec.tsx @@ -0,0 +1,4 @@ +import * as React from 'react'; +import AlertTitle from '@mui/material/AlertTitle'; + +;