Skip to content

Commit 5b6e14c

Browse files
committed
Adds ability to set URL for logo
1 parent f15906f commit 5b6e14c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/compounds/Logo/Logo.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import React from 'react'
22
import PropTypes from 'prop-types'
33
import Image from '../../components/Image/Image'
44

5-
const Logo = ({ addClass, alt, src, height }) => (
6-
<a href='/'>
5+
const Logo = ({ addClass, alt, src, height, logoUrl }) => (
6+
<a href={logoUrl}>
77
<Image src={src} alt={alt} height={height} addClass={addClass} />
88
</a>
99
)
@@ -13,12 +13,14 @@ Logo.propTypes = {
1313
alt: PropTypes.string,
1414
src: PropTypes.string.isRequired,
1515
height: PropTypes.number,
16+
logoUrl: PropTypes.string,
1617
}
1718

1819
Logo.defaultProps = {
1920
addClass: '',
2021
alt: '',
2122
height: 50,
23+
logoUrl: '/'
2224
}
2325

2426
export default Logo

0 commit comments

Comments
 (0)