Skip to content

Commit

Permalink
[Badge][material-next] Apply new OwnerState type to Badge (#40119)
Browse files Browse the repository at this point in the history
  • Loading branch information
lhilgert9 authored Dec 6, 2023
1 parent dc77e53 commit d56d14e
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions packages/mui-material-next/src/Badge/Badge.types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
import { SxProps } from '@mui/system';
import { OverridableStringUnion, OverrideProps } from '@mui/types';
import { OverridableStringUnion, OverrideProps, PartiallyRequired } from '@mui/types';
import { SlotComponentProps } from '@mui/base';
import { Theme } from '../styles';
import { BadgeClasses } from './badgeClasses';
Expand Down Expand Up @@ -126,10 +126,8 @@ export type BadgeProps<
AdditionalProps = {},
> = OverrideProps<BadgeTypeMap<RootComponent, AdditionalProps>, RootComponent>;

export interface BadgeOwnerState extends BadgeProps {
size: NonNullable<BadgeProps['size']>;
variant: NonNullable<BadgeProps['variant']>;
anchorOrigin: NonNullable<BadgeProps['anchorOrigin']>;
overlap: NonNullable<BadgeProps['overlap']>;
color: NonNullable<BadgeProps['color']>;
}
export interface BadgeOwnerState
extends PartiallyRequired<
BadgeProps,
'anchorOrigin' | 'color' | 'overlap' | 'size' | 'variant'
> {}

0 comments on commit d56d14e

Please sign in to comment.