feat(core): update
This commit is contained in:
@@ -54,12 +54,12 @@ export default function Header({ lang = 'fa' }){
|
||||
const pathname = usePathname()
|
||||
const [isOpen, setIsOpen] = useState(false)
|
||||
const isFa = lang === 'fa'
|
||||
const basePath = `/${lang}`
|
||||
const basePath = `/${lang}/home`
|
||||
const items = [
|
||||
{ href: `${basePath}#about`, label: isFa ? 'درباره ما' : 'About' },
|
||||
{ href: `${basePath}#products`, label: isFa ? 'محصولات' : 'Products' },
|
||||
{ href: `${basePath}#production`, label: isFa ? 'تجهیزات' : 'Equipment' },
|
||||
{ href: `${basePath}/management`, label: isFa ? 'مدیریت' : 'Management' },
|
||||
{ href: `/${lang}/management`, label: isFa ? 'مدیریت' : 'Management' },
|
||||
]
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user