Skip to content

Commit

Permalink
Merge pull request #118 from subquery/feat/pending-status
Browse files Browse the repository at this point in the history
fix: status to pending
  • Loading branch information
HuberTRoy authored Jul 8, 2024
2 parents fe6f01a + 748a654 commit 523d7df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 3 additions & 7 deletions src/components/DelegationCampaign/DelegationCampaign.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ const SecondStep = (props: { userInfo?: IDelegationUserInfo['data'] }) => {

return (
eraInfo || {
id: +new Date(),
id: +new Date() + Math.random() + index,
user_id: account || '',
era: era.toString(),
point: '0',
Expand Down Expand Up @@ -395,17 +395,13 @@ const SecondStep = (props: { userInfo?: IDelegationUserInfo['data'] }) => {
<div style={{ display: 'flex', gap: 6 }}>
<div style={{ padding: 5 }}>
<img
src={userInfo?.eligible ? '/static/validUser.svg' : '/static/invalidUser.svg'}
src={userInfo?.eligible ? '/static/validUser.svg' : '/static/invalidUser2.svg'}
alt=""
style={{ width: 32, height: 38 }}
></img>
</div>
<div style={{ display: 'flex', flexDirection: 'column' }}>
<Typography>
{userInfo?.eligible
? 'Yes, you are a valid participant !'
: 'Sorry, you are not yet a valid participant.'}
</Typography>
<Typography>{userInfo?.eligible ? 'Yes, you are a valid participant !' : 'Pending Validation'}</Typography>
<Typography type="secondary" variant="small" style={{ lineHeight: '18px' }}>
{userInfo?.eligible ? (
'You have successfully delegated 3,000 SQT for two entire Eras. '
Expand Down

0 comments on commit 523d7df

Please sign in to comment.