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 {
key={`proposal-vote-icon-${proposal.get('id')}`}
href="javascript:void(0)"
onClick={() =>
!isVotingInProgress &&
this.onUpdateProposalVotes(proposal, isVoted)
}
>
{
{isVotingInProgress ? (
<span className="Voting__button Voting__button-up votingUp">
<Icon name="empty" className="upvote" />
</span>
) : (
<span
className={`Voting__button Voting__button-up ${
isVotingInProgress
? 'votingUp'
: isVoted
? 'Voting__button--upvoted'
: ''
!isVoted
? ''
: 'Voting__button--upvoted'
}`}
>
<Icon
name={`${
isVotingInProgress
? 'empty'
: 'chevron-up-circle'
}`}
name="chevron-up-circle"
className="upvote"
key={`vote-icon-${value}`}
/>
</span>
}
)}
</a>
),
isOwner && (
......
......@@ -19,6 +19,10 @@
align-items: center;
justify-content: center;
}
.Voting__button-up {
padding-right: 0 !important;
}
}
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