Commit bb951bff authored by Efe's avatar Efe Committed by Jonathan Porta
Browse files

fix loading flickering

parent 4a696fb9
...@@ -233,30 +233,28 @@ class SteemProposalSystem extends React.Component { ...@@ -233,30 +233,28 @@ class SteemProposalSystem extends React.Component {
key={`proposal-vote-icon-${proposal.get('id')}`} key={`proposal-vote-icon-${proposal.get('id')}`}
href="javascript:void(0)" href="javascript:void(0)"
onClick={() => onClick={() =>
!isVotingInProgress &&
this.onUpdateProposalVotes(proposal, isVoted) this.onUpdateProposalVotes(proposal, isVoted)
} }
> >
{ {isVotingInProgress ? (
<span className="Voting__button Voting__button-up votingUp">
<Icon name="empty" className="upvote" />
</span>
) : (
<span <span
className={`Voting__button Voting__button-up ${ className={`Voting__button Voting__button-up ${
isVotingInProgress !isVoted
? 'votingUp' ? ''
: isVoted : 'Voting__button--upvoted'
? 'Voting__button--upvoted'
: ''
}`} }`}
> >
<Icon <Icon
name={`${ name="chevron-up-circle"
isVotingInProgress
? 'empty'
: 'chevron-up-circle'
}`}
className="upvote" className="upvote"
key={`vote-icon-${value}`}
/> />
</span> </span>
} )}
</a> </a>
), ),
isOwner && ( isOwner && (
......
...@@ -19,6 +19,10 @@ ...@@ -19,6 +19,10 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.Voting__button-up {
padding-right: 0 !important;
}
} }
td.subject-column, td.subject-column,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment