Skip to content

Commit

Permalink
Merge pull request #951 from LiskHQ/949-change-texts-in-delegates-page
Browse files Browse the repository at this point in the history
Change text in Delegate Details page - Closes #949
  • Loading branch information
michaeltomasik committed Jun 25, 2018
2 parents 60a34f7 + 8560eb5 commit 6f22dbc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions i18n/locales/en/common.json
Expand Up @@ -315,15 +315,15 @@
"Vote_verb": "Vote",
"Voted": "Voted",
"Votes": "Votes",
"Votes of an account": "Votes of an account",
"Votes of this account": "Votes of this account",
"Votes submitted": "Votes submitted",
"Voting": "Voting",
"Wallet": "Wallet",
"We recommend including date & time or a specific keyword.": "We recommend including date & time or a specific keyword.",
"Welcome to Lisk Hub": "Welcome to Lisk Hub",
"What is Lisk ID?": "What is Lisk ID?",
"What's New...": "What's New...",
"Who voted for a delegate": "Who voted for a delegate",
"Who voted for this delegate": "Who voted for this delegate",
"Window": "Window",
"Write a message": "Write a message",
"Write to check availability": "Write to check availability",
Expand Down
2 changes: 1 addition & 1 deletion src/components/transactions/userVotes.js
Expand Up @@ -17,7 +17,7 @@ class UserVotes extends AccountList {
<div className={`${grid['col-xs-12']} ${grid['col-sm-12']} ${grid['col-md-12']}`}>
<div className={styles.label}>
<div className='votes-value'>
{this.props.t('Votes of an account')}
{this.props.t('Votes of this account')}
{` (${this.state.votesSize})`}
</div>
{super.renderSearchFilter('votesFilterQuery', t('Filter votes'))}
Expand Down
2 changes: 1 addition & 1 deletion src/components/transactions/votedDelegates.js
Expand Up @@ -16,7 +16,7 @@ class VotedDelegates extends AccountList {
<div className={`${grid['col-xs-12']} ${grid['col-sm-12']} ${grid['col-md-12']}`}>
<div className={styles.label}>
<div className='voters-value'>
{this.props.t('Who voted for a delegate')}
{this.props.t('Who voted for this delegate')}
{` (${this.state.votersSize})`}
</div>
{super.renderSearchFilter('votersFilterQuery', t('Filter voters'))}
Expand Down
4 changes: 2 additions & 2 deletions src/components/transactions/walletTransactions/index.test.js
Expand Up @@ -102,7 +102,7 @@ describe('WalletTransactions Component', () => {
it('loads votes and voters for a delegate account', () => {
wrapper.find('.delegate-statistics').first().simulate('click');
wrapper.update();
expect(wrapper.find('.votes-value').first()).to.have.text(`Votes of an account (${1})`);
expect(wrapper.find('.voters-value').first()).to.have.text(`Who voted for a delegate (${1})`);
expect(wrapper.find('.votes-value').first()).to.have.text(`Votes of this account (${1})`);
expect(wrapper.find('.voters-value').first()).to.have.text(`Who voted for this delegate (${1})`);
});
});

0 comments on commit 6f22dbc

Please sign in to comment.