From 74616ae30df458c2aeb7da25154a15ef39f455be Mon Sep 17 00:00:00 2001 From: Plumtree3D <ham.in.kneesocks@gmail.com> Date: Wed, 12 Jul 2023 09:31:08 +0200 Subject: [PATCH] fix: removed unused theme module --- src/theme/Navbar/Layout/index.js | 50 -------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 src/theme/Navbar/Layout/index.js diff --git a/src/theme/Navbar/Layout/index.js b/src/theme/Navbar/Layout/index.js deleted file mode 100644 index dbf3a80..0000000 --- a/src/theme/Navbar/Layout/index.js +++ /dev/null @@ -1,50 +0,0 @@ -import React from 'react'; -import clsx from 'clsx'; -import {useThemeConfig} from '@docusaurus/theme-common'; -import { - useHideableNavbar, - useNavbarMobileSidebar, -} from '@docusaurus/theme-common/internal'; -import NavbarMobileSidebar from '@theme/Navbar/MobileSidebar'; - - - - -function NavbarBackdrop(props) { - return ( - <div - role="presentation" - {...props} - className={clsx('navbar-sidebar__backdrop', props.className)} - /> - ); -} -export default function NavbarLayout({children}) { - - const { - navbar: {hideOnScroll, style}, - } = useThemeConfig(); - const mobileSidebar = useNavbarMobileSidebar(); - const {navbarRef, isNavbarVisible} = useHideableNavbar(hideOnScroll); - return ( - <nav - ref={navbarRef} - className={clsx( - 'navbar', - 'navbar--fixed-top', - hideOnScroll && [ - styles.navbarHideable, - !isNavbarVisible && styles.navbarHidden, - ], - { - 'navbar--dark': style === 'dark', - 'navbar--primary': style === 'primary', - 'navbar-sidebar--show': mobileSidebar.shown, - }, - )}> - {children} - <NavbarBackdrop onClick={mobileSidebar.toggle} /> - <NavbarMobileSidebar /> - </nav> - ); -} -- GitLab