Merge pull request #1993 from lbryio/reward-codes

move reward code to bottom of rewards list
This commit is contained in:
Sean Yesmunt 2018-10-02 11:37:19 -04:00 committed by GitHub
commit 5619a4a030
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,6 +126,7 @@ class RewardsPage extends React.PureComponent<Props> {
'card--disabled': isNotEligible,
})}
>
{rewards.map(reward => <RewardTile key={reward.reward_type} reward={reward} />)}
<RewardTile
key={REWARD_TYPES.TYPE_GENERATED_CODE}
reward={{
@ -136,7 +137,6 @@ class RewardsPage extends React.PureComponent<Props> {
),
}}
/>
{rewards.map(reward => <RewardTile key={reward.reward_type} reward={reward} />)}
</div>
);
}