From 609e2a632c8b6d12059653513d616996e8642ac7 Mon Sep 17 00:00:00 2001 From: sai chand <60743144+sai6855@users.noreply.github.com> Date: Tue, 9 May 2023 16:34:43 +0530 Subject: [PATCH] [AppBar] Fix component type (#37172) --- packages/mui-material/src/AppBar/AppBar.d.ts | 16 +++++++++------- packages/mui-material/src/AppBar/AppBar.spec.tsx | 9 ++++++++- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/packages/mui-material/src/AppBar/AppBar.d.ts b/packages/mui-material/src/AppBar/AppBar.d.ts index 2d0388405baca2..93be380f80e91b 100644 --- a/packages/mui-material/src/AppBar/AppBar.d.ts +++ b/packages/mui-material/src/AppBar/AppBar.d.ts @@ -1,16 +1,16 @@ import * as React from 'react'; import { SxProps } from '@mui/system'; -import { DistributiveOmit, OverridableStringUnion } from '@mui/types'; +import { OverridableStringUnion } from '@mui/types'; import { OverridableComponent, OverrideProps } from '@mui/material/OverridableComponent'; import { PropTypes, Theme } from '..'; -import { PaperProps } from '../Paper'; import { AppBarClasses } from './appBarClasses'; +import { ExtendPaperTypeMap } from '../Paper/Paper'; export interface AppBarPropsColorOverrides {} -export interface AppBarTypeMap
{
- props: P &
- DistributiveOmit = ExtendPaperTypeMap<
+ {
+ props: P & {
/**
* Override or extend the styles applied to the component.
*/
@@ -39,8 +39,10 @@ export interface AppBarTypeMap {
*/
sx?: SxProps