From 941e213cc9f250dc9c46f243aeb9cbb013a705d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aar=C3=B3n=20Garc=C3=ADa=20Herv=C3=A1s?= Date: Tue, 8 Oct 2024 16:49:19 +0200 Subject: [PATCH] Fix Timeline types --- packages/mui-lab/src/Timeline/Timeline.tsx | 4 ++-- packages/mui-lab/src/Timeline/Timeline.types.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/mui-lab/src/Timeline/Timeline.tsx b/packages/mui-lab/src/Timeline/Timeline.tsx index 2df1eb6b2e7829..f5c7689f857c0d 100644 --- a/packages/mui-lab/src/Timeline/Timeline.tsx +++ b/packages/mui-lab/src/Timeline/Timeline.tsx @@ -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; diff --git a/packages/mui-lab/src/Timeline/Timeline.types.ts b/packages/mui-lab/src/Timeline/Timeline.types.ts index 01e9cbf6df0176..22207ea2316e96 100644 --- a/packages/mui-lab/src/Timeline/Timeline.types.ts +++ b/packages/mui-lab/src/Timeline/Timeline.types.ts @@ -4,7 +4,7 @@ import { Theme } from '@mui/material/styles'; import { SxProps } from '@mui/system'; import { TimelineClasses } from './timelineClasses'; -export interface TimelineProps extends StandardProps> { +export interface TimelineProps extends StandardProps> { /** * The position where the TimelineContent should appear relative to the time axis. * @default 'right'