diff --git a/packages/mui-material/src/usePagination/usePagination.js b/packages/mui-material/src/usePagination/usePagination.js index 6125f1b03e3805..c77a737e0ebbe3 100644 --- a/packages/mui-material/src/usePagination/usePagination.js +++ b/packages/mui-material/src/usePagination/usePagination.js @@ -78,8 +78,8 @@ export default function usePagination(props = {}) { ...(siblingsStart > boundaryCount + 2 ? ['start-ellipsis'] : boundaryCount + 1 < count - boundaryCount - ? [boundaryCount + 1] - : []), + ? [boundaryCount + 1] + : []), // Sibling pages ...range(siblingsStart, siblingsEnd), @@ -89,8 +89,8 @@ export default function usePagination(props = {}) { ...(siblingsEnd < count - boundaryCount - 1 ? ['end-ellipsis'] : count - boundaryCount > boundaryCount - ? [count - boundaryCount] - : []), + ? [count - boundaryCount] + : []), ...endPages, ...(hideNextButton ? [] : ['next']), diff --git a/packages/mui-system/src/Container/createContainer.tsx b/packages/mui-system/src/Container/createContainer.tsx index b08839f5821448..a5ec4fc96e0f9a 100644 --- a/packages/mui-system/src/Container/createContainer.tsx +++ b/packages/mui-system/src/Container/createContainer.tsx @@ -89,7 +89,7 @@ export default function createContainer>), + }) as Interpolation>, ({ theme, ownerState }: StyleFnProps) => ownerState.fixed && Object.keys(theme.breakpoints.values).reduce((acc, breakpointValueKey) => { diff --git a/packages/mui-system/src/cssVars/createCssVarsProvider.spec.tsx b/packages/mui-system/src/cssVars/createCssVarsProvider.spec.tsx index f4e964ed0bfeed..421a55cc7563b9 100644 --- a/packages/mui-system/src/cssVars/createCssVarsProvider.spec.tsx +++ b/packages/mui-system/src/cssVars/createCssVarsProvider.spec.tsx @@ -26,10 +26,10 @@ const extendTheme = (themeInput: JoyThemeInput) => dark: { palette: { primary: { main: '' } } }, }, fontSize: { md: '' }, - } as { + }) as { colorSchemes: Record; fontSize: { md: string }; - }); + }; const { CssVarsProvider, useColorScheme } = createCssVarsProvider({ defaultColorScheme: 'light',