Logoya tıklanınca default gitmesi

This commit is contained in:
Sedat ÖZTÜRK 2025-05-29 16:52:45 +03:00
parent 4719ac24b8
commit d8000208d2

View file

@ -2,6 +2,7 @@ import classNames from 'classnames'
import { APP_NAME } from '@/constants/app.constant' import { APP_NAME } from '@/constants/app.constant'
import type { CommonProps } from '@/@types/common' import type { CommonProps } from '@/@types/common'
import { Mode } from '@/@types/theme' import { Mode } from '@/@types/theme'
import { Link } from 'react-router-dom'
interface LogoProps extends CommonProps { interface LogoProps extends CommonProps {
type?: 'full' | 'streamline' type?: 'full' | 'streamline'
@ -23,11 +24,13 @@ const Logo = (props: LogoProps) => {
...{ width: logoWidth }, ...{ width: logoWidth },
}} }}
> >
<Link to="/">
<img <img
className={imgClass} className={imgClass}
src={`${LOGO_SRC_PATH}logo-${mode}-${type}.png`} src={`${LOGO_SRC_PATH}logo-${mode}-${type}.png`}
alt={`${APP_NAME} logo`} alt={`${APP_NAME} logo`}
/> />
</Link>
</div> </div>
) )
} }