From 6205492d7e1649f4e7a11faf910a5dbc2d6fd344 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Sat, 31 Dec 2022 11:38:20 +0100 Subject: [PATCH] [core] Disable prefetch of footer links This is unecessary, no need to waste bandwidth with prefetch on viewport. --- .../modules/components/AppLayoutDocsFooter.js | 22 ++++++------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/docs/src/modules/components/AppLayoutDocsFooter.js b/docs/src/modules/components/AppLayoutDocsFooter.js index 5721325be287df..58e64fb77c3dca 100644 --- a/docs/src/modules/components/AppLayoutDocsFooter.js +++ b/docs/src/modules/components/AppLayoutDocsFooter.js @@ -22,12 +22,6 @@ import PageContext from 'docs/src/modules/components/PageContext'; import Link from 'docs/src/modules/components/Link'; import { useUserLanguage, useTranslate } from 'docs/src/modules/utils/i18n'; -const Footer = styled('footer')(({ theme }) => { - return { - marginTop: theme.spacing(12), - }; -}); - const PaginationDiv = styled('div')(({ theme }) => { return { margin: theme.spacing(3, 0, 4), @@ -39,13 +33,9 @@ const PaginationDiv = styled('div')(({ theme }) => { }; }); -const PageLinkButton = styled(Button)(({ theme }) => { - return { - textTransform: 'none', - fontWeight: 500, - color: theme.palette.mode === 'dark' ? theme.palette.primary[300] : theme.palette.primary[500], - }; -}); +const PageLinkButton = styled(Button)(({ theme }) => ({ + fontWeight: theme.typography.fontWeightMedium, +})); const FeedbackGrid = styled(Grid)(({ theme }) => { return { @@ -382,7 +372,7 @@ export default function AppLayoutDocsFooter(props) { return ( - +