fix page highlight
This commit is contained in:
@@ -6,7 +6,9 @@ import { usePathname } from 'next/navigation';
|
|||||||
import { useTranslations } from 'next-intl';
|
import { useTranslations } from 'next-intl';
|
||||||
|
|
||||||
export default function DropDownList() {
|
export default function DropDownList() {
|
||||||
const pathname = usePathname();
|
const pathname = usePathname().replace('/en/', '/').replace('/ru/', '/');
|
||||||
|
console.log('pathname');
|
||||||
|
console.log(pathname);
|
||||||
const [dropDownExpanded, setDropDownExpanded] = useState(false);
|
const [dropDownExpanded, setDropDownExpanded] = useState(false);
|
||||||
const t = useTranslations('Global');
|
const t = useTranslations('Global');
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import { logout } from '@/app/actions/auth';
|
|||||||
import { useTranslations } from 'next-intl';
|
import { useTranslations } from 'next-intl';
|
||||||
|
|
||||||
export default function NavLinks() {
|
export default function NavLinks() {
|
||||||
const pathname = usePathname();
|
const pathname = usePathname().replace('/en/', '/').replace('/ru/', '/');
|
||||||
const t = useTranslations('Global');
|
const t = useTranslations('Global');
|
||||||
|
|
||||||
const links = [
|
const links = [
|
||||||
|
|||||||
Reference in New Issue
Block a user