Skip to content

Commit

Permalink
Adds ability to set URL for logo
Browse files Browse the repository at this point in the history
  • Loading branch information
labradford committed May 10, 2024
1 parent f15906f commit 5b6e14c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/compounds/Logo/Logo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react'
import PropTypes from 'prop-types'
import Image from '../../components/Image/Image'

const Logo = ({ addClass, alt, src, height }) => (
<a href='/'>
const Logo = ({ addClass, alt, src, height, logoUrl }) => (
<a href={logoUrl}>
<Image src={src} alt={alt} height={height} addClass={addClass} />
</a>
)
Expand All @@ -13,12 +13,14 @@ Logo.propTypes = {
alt: PropTypes.string,
src: PropTypes.string.isRequired,
height: PropTypes.number,
logoUrl: PropTypes.string,
}

Logo.defaultProps = {
addClass: '',
alt: '',
height: 50,
logoUrl: '/'
}

export default Logo

0 comments on commit 5b6e14c

Please sign in to comment.