Skip to content

Commit

Permalink
Merge pull request #1503 from renekorss/1477-comma-in-vote-weight
Browse files Browse the repository at this point in the history
Use LiskAmount to show vote weight - Closes #1477
  • Loading branch information
slaweet authored Nov 16, 2018
2 parents 93a00e8 + 10204c3 commit f772fc2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/transactions/delegateStatistics.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import grid from 'flexboxgrid/dist/flexboxgrid.css';
import { translate } from 'react-i18next';
import UserVotes from './userVotes';
import VotedDelegates from './votedDelegates';
import LiskAmount from '../liskAmount';
import voting from '../../constants/voting';
import styles from './delegateStatistics.css';

Expand Down Expand Up @@ -36,7 +37,7 @@ class DelegateStatistics extends React.Component {
<div className={`transactions-detail-view ${grid.row} ${grid['between-md']} ${grid['between-sm']} ${styles.row} vote`}>
<div className={`${grid['col-xs-12']} ${grid['col-sm-4']} ${grid['col-md-4']}`}>
<div className={styles.label}>{this.props.t('Vote weight')}</div>
<div className={styles.value}>{delegate && delegate.vote}</div>
<div className={styles.value}>{delegate && <LiskAmount val={delegate.vote}/>}</div>
</div>
<div className={`${grid['col-xs-12']} ${grid['col-sm-8']} ${grid['col-md-8']} blocks`}>
<div className={styles.label}>{this.props.t('Blocks')}</div>
Expand Down

0 comments on commit f772fc2

Please sign in to comment.