diff --git a/packages/x-date-pickers/src/TimeClock/Clock.tsx b/packages/x-date-pickers/src/TimeClock/Clock.tsx index b13ae9d11ddc3..36764675fa6d8 100644 --- a/packages/x-date-pickers/src/TimeClock/Clock.tsx +++ b/packages/x-date-pickers/src/TimeClock/Clock.tsx @@ -158,7 +158,10 @@ const ClockPin = styled('div', { transform: 'translate(-50%, -50%)', })); -const meridiemButtonCommonStyles = (theme: Theme, meridiemMode: Meridiem) => ({ +const meridiemButtonCommonStyles = ( + theme: Theme, + clockMeridiemMode: ClockOwnerState['clockMeridiemMode'], +) => ({ zIndex: 1, bottom: 8, paddingLeft: 4, @@ -166,7 +169,7 @@ const meridiemButtonCommonStyles = (theme: Theme, meridiemMode: Meridiem) => ({ width: CLOCK_HOUR_WIDTH, variants: [ { - props: { meridiemMode }, + props: { clockMeridiemMode }, style: { backgroundColor: (theme.vars || theme).palette.primary.main, color: (theme.vars || theme).palette.primary.contrastText, diff --git a/packages/x-date-pickers/src/TimeClock/ClockPointer.tsx b/packages/x-date-pickers/src/TimeClock/ClockPointer.tsx index 65eb157ebb58f..9142e63f1370e 100644 --- a/packages/x-date-pickers/src/TimeClock/ClockPointer.tsx +++ b/packages/x-date-pickers/src/TimeClock/ClockPointer.tsx @@ -84,7 +84,7 @@ const ClockPointerThumb = styled('div', { boxSizing: 'content-box', variants: [ { - props: { isBetweenTwoClockValues: false }, + props: { isClockPointerBetweenTwoValues: false }, style: { backgroundColor: (theme.vars || theme).palette.primary.main, },