Logoya tıklanınca default gitmesi
This commit is contained in:
parent
4719ac24b8
commit
d8000208d2
1 changed files with 8 additions and 5 deletions
|
|
@ -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>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue