From d6e5adecb7d3c48725c9e4eb9d4d333ede23d2ef 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 17:16:31 +0200 Subject: [PATCH] [lab][Timeline] Fix types for React 19 (#44043) --- 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'