Enable sticky nav on all pages
This commit is contained in:
parent
b823e47e5d
commit
34f2b64abc
@ -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>,
|
||||
) {
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user