stuff done
This commit is contained in:
@@ -1,20 +1,25 @@
|
||||
'use client'
|
||||
|
||||
import {useLocale, useTranslations} from 'next-intl'
|
||||
import Image from 'next/image'
|
||||
import Link from 'next/link'
|
||||
|
||||
// TODO: Link throwing no connection error in this component; React 19 Bug
|
||||
// import {Link} from '@/i18n/routing'
|
||||
import {APP_NAME} from '@/lib/constants'
|
||||
import logoImg from '@/public/images/logo.svg'
|
||||
|
||||
export default function Logo() {
|
||||
const t = useTranslations('Common')
|
||||
const locale = useLocale()
|
||||
const ar = 121 / 192
|
||||
const w = 112
|
||||
|
||||
return (
|
||||
<div className='mt-0.5 flex items-center justify-center'>
|
||||
<Link
|
||||
href='/'
|
||||
<a
|
||||
href={locale !== 'ru' ? '/' : '/ru'}
|
||||
className='m-1 flex cursor-pointer items-center pt-[7px] text-2xl font-extrabold outline-0'
|
||||
aria-label={t('home')}
|
||||
>
|
||||
<Image
|
||||
src={logoImg}
|
||||
@@ -23,7 +28,7 @@ export default function Logo() {
|
||||
alt={`${APP_NAME} logo`}
|
||||
className='w-[131]'
|
||||
/>
|
||||
</Link>
|
||||
</a>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user