Use full name for classnames

[MAILPOET-2676]
This commit is contained in:
Amine Ben hammou
2020-03-10 13:36:58 +01:00
committed by amine-mp
parent 33ccb84744
commit 187c8f5ac7

View File

@ -1,4 +1,4 @@
import cn from 'classnames';
import classnames from 'classnames';
import React, { ReactNode } from 'react';
import { Link } from 'react-router-dom';
import MailPoet from 'mailpoet';
@ -15,7 +15,7 @@ export default (props: Props) => (
to={`/${props.name}`}
onClick={() => trackTabClicked(props.name)}
data-automation-id={props.automationId}
className={cn('nav-tab', { 'nav-tab-active': props.name === props.current })}
className={classnames('nav-tab', { 'nav-tab-active': props.name === props.current })}
>
{props.children}
</Link>