diff --git a/docs/src/modules/components/AppLayoutDocsFooter.js b/docs/src/modules/components/AppLayoutDocsFooter.js index 8a4db701a7a584..b718f527b0cf26 100644 --- a/docs/src/modules/components/AppLayoutDocsFooter.js +++ b/docs/src/modules/components/AppLayoutDocsFooter.js @@ -81,7 +81,7 @@ function orderedPages(pages, current = []) { } async function postFeedback(data) { - const env = window.location.host.includes('mui.com')? 'prod' : 'dev'; + const env = window.location.host.includes('mui.com') ? 'prod' : 'dev'; try { const response = await fetch(`${process.env.FEEDBACK_URL}/${env}/feedback`, { method: 'POST', diff --git a/docs/src/modules/components/AppNavDrawer.js b/docs/src/modules/components/AppNavDrawer.js index ef092773e6610a..561140d66d032c 100644 --- a/docs/src/modules/components/AppNavDrawer.js +++ b/docs/src/modules/components/AppNavDrawer.js @@ -261,8 +261,9 @@ function reduceChildRoutes(context) { const title = pageToTitleI18n(page, t); if (page.children && page.children.length >= 1) { - const topLevel = - activePageParents.map((parentPage) => parentPage.pathname).includes(page.pathname); + const topLevel = activePageParents + .map((parentPage) => parentPage.pathname) + .includes(page.pathname); let firstChild = page.children[0]; diff --git a/docs/src/modules/components/AppSearch.js b/docs/src/modules/components/AppSearch.js index 3bcb53b90a7cd2..2c2dcd6303968a 100644 --- a/docs/src/modules/components/AppSearch.js +++ b/docs/src/modules/components/AppSearch.js @@ -342,8 +342,9 @@ export default function AppSearch(props) { const searchButtonRef = React.useRef(null); const [isOpen, setIsOpen] = React.useState(false); const [initialQuery, setInitialQuery] = React.useState(undefined); - const facetFilterLanguage = - LANGUAGES_SSR.includes(userLanguage)? `language:${userLanguage}` : `language:en`; + const facetFilterLanguage = LANGUAGES_SSR.includes(userLanguage) + ? `language:${userLanguage}` + : `language:en`; const macOS = window.navigator.platform.toUpperCase().indexOf('MAC') >= 0; const onOpen = React.useCallback(() => { setIsOpen(true); diff --git a/docs/src/modules/utils/find.mjs b/docs/src/modules/utils/find.mjs index 77238f2e506fd6..a5221c421cd2a7 100644 --- a/docs/src/modules/utils/find.mjs +++ b/docs/src/modules/utils/find.mjs @@ -42,11 +42,7 @@ export function findPages( return; } - if ( - options.front && - !pathname.includes('/components')&& - !pathname.includes('/api-docs') - ) { + if (options.front && !pathname.includes('/components') && !pathname.includes('/api-docs')) { return; } diff --git a/docs/src/pages/versions/ReleasedVersions.js b/docs/src/pages/versions/ReleasedVersions.js index be76c3fa9bde03..ede4cedc2c2833 100644 --- a/docs/src/pages/versions/ReleasedVersions.js +++ b/docs/src/pages/versions/ReleasedVersions.js @@ -31,8 +31,7 @@ function ReleasedVersions() { - {doc.version.length >= 6 && - !doc.version.includes('pre-release') ? ( + {doc.version.length >= 6 && !doc.version.includes('pre-release') ? ( ( } else { sxObject[key] = theme.vars?.radius[value as keyof typeof theme.vars.radius] || value; } - } else if ( - ['p', 'padding', 'm', 'margin'].includes(key) && - typeof value === 'number' - ) { + } else if (['p', 'padding', 'm', 'margin'].includes(key) && typeof value === 'number') { sxObject[key] = theme.spacing(value); } else { sxObject[key] = value; diff --git a/packages/mui-material/src/usePagination/usePagination.js b/packages/mui-material/src/usePagination/usePagination.js index 18789b63bded8e..d76cb58e6be8e9 100644 --- a/packages/mui-material/src/usePagination/usePagination.js +++ b/packages/mui-material/src/usePagination/usePagination.js @@ -135,7 +135,7 @@ export default function usePagination(props = {}) { selected: false, disabled: disabled || - (!item.includes('ellipsis')&& + (!item.includes('ellipsis') && (item === 'next' || item === 'last' ? page >= count : page <= 1)), }; });