Skip to content

Commit

Permalink
Merge pull request #659 from artizen-fund/test
Browse files Browse the repository at this point in the history
Test
  • Loading branch information
rubelux authored Oct 19, 2023
2 parents cfffc37 + 26f9112 commit 5b4d059
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 15 deletions.
3 changes: 3 additions & 0 deletions src/components/Layout/Header/AccountButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ const AccountButton = ({ active, ...props }: SimpleComponentProps & { active: bo
},
onError: error => {
console.log('onError ', error)
if (error.message === 'Error: Could not verify JWT: JWTExpired') {
disconnectAndSignout()
}

setLoading(false)
},
Expand Down
4 changes: 1 addition & 3 deletions src/components/Leaderboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,7 @@ const Amount = styled.div`
}
@media only screen and (max-width: ${breakpoint.phablet}px) {
span {
display: none;
}
display: none;
}
`

Expand Down
6 changes: 5 additions & 1 deletion src/components/ProjectSponsors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ const SponsorItem = styled.div`
margin: 0 8px 0 0;
`

const Sponsor = styled.div``
const Sponsor = styled.div`
@media (prefers-color-scheme: dark) {
filter: invert(1);
}
`

const SponsorLogo = styled.img`
height: 70px;
Expand Down
25 changes: 14 additions & 11 deletions src/components/RankAndArtifactCount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,20 @@ interface IRankAndArtifactCount {
matchFundPooled: number
}

const RankAndArtifactCount = ({ rank, count, seasonIsActive, totalSales, matchFundPooled }: IRankAndArtifactCount) => (
<Wrapper>
<Rank value={rank + 1} />
<ArtifactRaised isWinner={rank === 0} count={count} totalSales={totalSales} matchFundPooled={matchFundPooled} />
{!seasonIsActive && (
<SubmissionEnded>
<span>Season 2 ended</span>
</SubmissionEnded>
)}
</Wrapper>
)
const RankAndArtifactCount = ({ rank, count, seasonIsActive, totalSales, matchFundPooled }: IRankAndArtifactCount) => {
console.log('seasonIsActive ::: ', seasonIsActive)
return (
<Wrapper>
<Rank value={rank + 1} />
<ArtifactRaised isWinner={rank === 0} count={count} totalSales={totalSales} matchFundPooled={matchFundPooled} />
{!seasonIsActive && (
<SubmissionEnded>
<span>Season 2 ended</span>
</SubmissionEnded>
)}
</Wrapper>
)
}

const SubmissionEnded = styled.div`
display: flex;
Expand Down

0 comments on commit 5b4d059

Please sign in to comment.