Skip to content

Commit

Permalink
[lab][Timeline] Fix types for React 19 (#44043)
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongarciah authored Oct 8, 2024
1 parent 488bdd9 commit d6e5ade
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/mui-lab/src/Timeline/Timeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const useUtilityClasses = (ownerState: OwnerState) => {
return composeClasses(slots, getTimelineUtilityClass, classes);
};

const TimelineRoot = styled('ul' as const, {
name: 'MuiTimeline' as const,
const TimelineRoot = styled('ul', {
name: 'MuiTimeline',
slot: 'Root',
overridesResolver: (props, styles) => {
const { ownerState } = props;
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-lab/src/Timeline/Timeline.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Theme } from '@mui/material/styles';
import { SxProps } from '@mui/system';
import { TimelineClasses } from './timelineClasses';

export interface TimelineProps extends StandardProps<React.HTMLAttributes<HTMLUListElement>> {
export interface TimelineProps extends StandardProps<React.ComponentProps<'ul'>> {
/**
* The position where the TimelineContent should appear relative to the time axis.
* @default 'right'
Expand Down

0 comments on commit d6e5ade

Please sign in to comment.