Skip to content

Commit

Permalink
Use classnames lib
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemBaskal committed May 27, 2020
1 parent 7003a70 commit 1d4ee05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/components/ui/Footer.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { Component, Fragment } from 'react';
import PropTypes from 'prop-types';
import { Trans, withTranslation } from 'react-i18next';
import classNames from 'classnames';

import { REPOSITORY, PRIVACY_POLICY_LINK } from '../../helpers/constants';
import { LANGUAGES } from '../../helpers/twosky';
Expand Down Expand Up @@ -46,7 +47,7 @@ class Footer extends Component {
renderLinks = (linksData) => linksData.map(({ name, href, className = '' }) => <a
key={name}
href={href}
className={`footer__link ${className}`.trim()}
className={classNames('footer__link', className)}
target="_blank"
rel="noopener noreferrer"
>
Expand Down

0 comments on commit 1d4ee05

Please sign in to comment.