Skip to content

Commit

Permalink
Fix Timeline types
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongarciah committed Oct 8, 2024
1 parent 488bdd9 commit 7b190cd
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 7b190cd

Please sign in to comment.