File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,15 +6,15 @@ import type { FC } from 'react';
66
77import NavBar from '@/components/Containers/NavBar' ;
88import 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' ;
1111import { availableLocales } from '@/next.locales.mjs' ;
1212
1313const 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
You can’t perform that action at this time.
0 commit comments