Add translation and style fixes

This commit is contained in:
Chi Vinh Le
2017-09-23 01:57:20 +07:00
parent 171a6d506b
commit d9cabeafe2
2 changed files with 5 additions and 2 deletions
@@ -12,10 +12,10 @@
margin-bottom: 30px;
background-color: #2376D8;
cursor: pointer;
text-transform: capitalize;
}
.viewMore:hover {
background-color: #4399FF;
}
@@ -3,6 +3,7 @@ import PropTypes from 'prop-types';
import {Button} from 'coral-ui';
import styles from './ViewMore.css';
import cn from 'classnames';
import t from 'coral-framework/services/i18n';
const ViewMore = ({viewMore, count, className, ...rest}) =>
<div {...rest} className={cn(className, styles.viewMoreContainer)}>
@@ -10,7 +11,9 @@ const ViewMore = ({viewMore, count, className, ...rest}) =>
count > 0 && <Button
className={styles.viewMore}
onClick={viewMore}>
View {count} New {count > 1 ? 'Comments' : 'Comment'}
{count === 1
? t('framework.new_count', count, t('framework.comment'))
: t('framework.new_count', count, t('framework.comments'))}
</Button>
}
</div>;