From afd801a44410f217ed352529c3f3f8ef0a60ce25 Mon Sep 17 00:00:00 2001 From: Daniel Lautzenheiser Date: Mon, 9 Sep 2024 11:00:09 -0400 Subject: [PATCH] chore: remove sponsor link --- .../docs/src/components/layout/Header.tsx | 12 -------- .../src/components/layout/SponsorButton.tsx | 29 ------------------- .../layout/mobile-drawer/NavigationDrawer.tsx | 2 -- 3 files changed, 43 deletions(-) delete mode 100644 packages/docs/src/components/layout/SponsorButton.tsx diff --git a/packages/docs/src/components/layout/Header.tsx b/packages/docs/src/components/layout/Header.tsx index bee22bfb7..815f55fe5 100644 --- a/packages/docs/src/components/layout/Header.tsx +++ b/packages/docs/src/components/layout/Header.tsx @@ -14,7 +14,6 @@ import releases from '../../lib/releases'; import Logo from './Logo'; import NavigationDrawer from './mobile-drawer/NavigationDrawer'; import Search from './search/Search'; -import SponsorButton from './SponsorButton'; import type { PaletteMode } from '@mui/material'; import type { ButtonTypeMap } from '@mui/material/Button'; @@ -213,13 +212,6 @@ const Header = ({ mode, docsGroups, searchablePages, toggleColorMode }: HeaderPr - {items.map(item => { let url = '#'; @@ -242,10 +234,6 @@ const Header = ({ mode, docsGroups, searchablePages, toggleColorMode }: HeaderPr ); })} - {/* - Blog - */} - ; -} - -const SponsorButton = ({ sx }: SponsorButtonProps) => { - const theme = useTheme(); - - return ( - - ); -}; - -export default SponsorButton; diff --git a/packages/docs/src/components/layout/mobile-drawer/NavigationDrawer.tsx b/packages/docs/src/components/layout/mobile-drawer/NavigationDrawer.tsx index a76c6cc4c..3038aca76 100644 --- a/packages/docs/src/components/layout/mobile-drawer/NavigationDrawer.tsx +++ b/packages/docs/src/components/layout/mobile-drawer/NavigationDrawer.tsx @@ -5,7 +5,6 @@ import SwipeableDrawer from '@mui/material/SwipeableDrawer'; import { useMemo } from 'react'; import Logo from '../Logo'; -import SponsorButton from '../SponsorButton'; import MobileNavItem from './MobileNavItem'; import type { MenuItem } from '../../../interface'; @@ -50,7 +49,6 @@ const NavigationDrawer = ({ items, mobileOpen, onMobileOpenToggle }: NavigationD - {items.map(item => (