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 type { CommonProps } from '@/@types/common'
|
||||
import { Mode } from '@/@types/theme'
|
||||
import { Link } from 'react-router-dom'
|
||||
|
||||
interface LogoProps extends CommonProps {
|
||||
type?: 'full' | 'streamline'
|
||||
|
|
@ -23,11 +24,13 @@ const Logo = (props: LogoProps) => {
|
|||
...{ width: logoWidth },
|
||||
}}
|
||||
>
|
||||
<img
|
||||
className={imgClass}
|
||||
src={`${LOGO_SRC_PATH}logo-${mode}-${type}.png`}
|
||||
alt={`${APP_NAME} logo`}
|
||||
/>
|
||||
<Link to="/">
|
||||
<img
|
||||
className={imgClass}
|
||||
src={`${LOGO_SRC_PATH}logo-${mode}-${type}.png`}
|
||||
alt={`${APP_NAME} logo`}
|
||||
/>
|
||||
</Link>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue