diff --git a/src/admin/AddButton.tsx b/src/admin/AddButton.tsx index 8f426100..07973c14 100644 --- a/src/admin/AddButton.tsx +++ b/src/admin/AddButton.tsx @@ -1,6 +1,7 @@ import { BiImageAdd } from 'react-icons/bi'; import PathLoaderButton from '@/components/primitives/PathLoaderButton'; import { ComponentProps } from 'react'; + export default function AddButton( props: ComponentProps, ) { diff --git a/src/app/Nav.tsx b/src/app/Nav.tsx index 3962c623..10bf5e1a 100644 --- a/src/app/Nav.tsx +++ b/src/app/Nav.tsx @@ -10,7 +10,6 @@ import { isPathAdmin, isPathFeed, isPathGrid, - isPathTopLevel, isPathProtected, isPathSignIn, } from '@/app/paths'; @@ -35,13 +34,12 @@ export default function Nav({ const pathname = usePathname(); const showNav = !isPathSignIn(pathname); - const isHome = isPathTopLevel(pathname); const { isNavSticky, shouldHideStickyNav, shouldAnimateStickyNav, - } = useStickyNav(ref, isHome); + } = useStickyNav(ref); const renderLink = ( text: string,