Enable sticky nav on all pages

This commit is contained in:
Sam Becker 2025-03-25 21:44:13 -05:00
parent b823e47e5d
commit 34f2b64abc
2 changed files with 2 additions and 3 deletions

View File

@ -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<typeof PathLoaderButton>,
) {

View File

@ -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,