Skip to content

Commit

Permalink
Update airdrop detail header
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeW0ng committed Jun 1, 2024
1 parent b51630a commit 36fe3ef
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ function Component ({ airdropInfo, className }: Props) {
let currentTimeline = Timeline.START;
const pastTimelines: Timeline[] = [Timeline.START];

if (airdropInfo.start_snapshot && now >= new Date(airdropInfo.start_snapshot).getTime()) {
if (airdropInfo.end_snapshot && now >= new Date(airdropInfo.end_snapshot).getTime()) {
currentTimeline = Timeline.SNAPSHOT;
pastTimelines.push(Timeline.SNAPSHOT);
}

if (airdropInfo.start_claim && now >= new Date(airdropInfo.start_claim).getTime()) {
if (airdropInfo.end_claim && now >= new Date(airdropInfo.end_claim).getTime()) {
currentTimeline = Timeline.CLAIM;
pastTimelines.push(Timeline.CLAIM);
}
Expand Down Expand Up @@ -213,11 +213,11 @@ export const AirdropDetailHeader = styled(Component)<Props>(({ theme: { extendTo
},

'&.-is-snapshot:before': {
maxWidth: '25%'
maxWidth: `${100 / 3}%`
},

'&.-is-claim:before': {
maxWidth: '75%'
maxWidth: `${200 / 3}%`
},

'&.-is-end:before': {
Expand Down

0 comments on commit 36fe3ef

Please sign in to comment.