add class name to off topic tag

This commit is contained in:
Ryan Yun
2017-09-22 11:41:54 -04:00
parent 7328926ad7
commit 66518f50dd
@@ -2,12 +2,13 @@ import React from 'react';
import styles from './OffTopicTag.css';
import {t} from 'plugin-api/beta/client/services';
import {isTagged} from 'plugin-api/beta/client/utils';
import cn from 'classnames';
export default (props) => (
<span>
{
isTagged(props.comment.tags, 'OFF_TOPIC') && props.depth === 0 ? (
<span className={styles.tag}>
<span className={cn(styles.tag, 'offTopicTagLabel')}>
{t('off_topic')}
</span>
) : null