Skip to content

Commit

Permalink
change(header): set the logo class directly on the link
Browse files Browse the repository at this point in the history
- we don't need another parameter for the link class
  • Loading branch information
ichim-david committed Feb 16, 2023
1 parent b1adcc3 commit f8fba50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/ui/Header/Header.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export default {

const logoProps = {
title: 'Site',
classes: 'logo',
alt: 'European Environment Agency',
url: 'https://eea.europa.eu',
src: LogoImage,
Expand Down
4 changes: 2 additions & 2 deletions src/ui/Logo/Logo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import { Image } from 'semantic-ui-react';
* @param {Object} intl Intl object
* @returns {string} Markup of the component.
*/
const Logo = ({ src, classes, invertedSrc, id, url, alt, title, inverted }) => {
const Logo = ({ src, invertedSrc, id, url, alt, title, inverted }) => {
return (
<Link to={url} title={title} class={classes}>
<Link to={url} title={title} className={'logo'}>
<Image
src={inverted ? invertedSrc : src}
alt={alt}
Expand Down

0 comments on commit f8fba50

Please sign in to comment.