Skip to content

Commit 7464e04

Browse files
committed
fix: fix navbar
1 parent 1b2f4cc commit 7464e04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/site/components/withNavBar.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ import type { FC } from 'react';
66

77
import NavBar from '@/components/Containers/NavBar';
88
import WithBanner from '@/components/withBanner';
9-
import { useClientContext, useSiteNavigation } from '@/hooks';
10-
import { useRouter } from '@/navigation.mjs';
9+
import { useSiteNavigation } from '@/hooks';
10+
import { useRouter, usePathname } from '@/navigation.mjs';
1111
import { availableLocales } from '@/next.locales.mjs';
1212

1313
const WithNavBar: FC = () => {
1414
const { navigationItems } = useSiteNavigation();
1515
const { resolvedTheme, setTheme } = useTheme();
16-
const { pathname } = useClientContext();
1716
const { replace } = useRouter();
17+
const pathname = usePathname();
1818

1919
const locale = useLocale();
2020

0 commit comments

Comments
 (0)