Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Fix bad merge (#2184)
Browse files Browse the repository at this point in the history
  • Loading branch information
anxolin authored Jan 18, 2022
1 parent 6277b03 commit ba6ff22
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/custom/pages/Claim/CanUserClaimMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ButtonSecondary } from 'components/Button'
import { ExternalLink } from 'theme'
import { IntroDescription } from './styled'
import { ClaimCommonTypes } from './types'
import { useAirdropDeadline, useClaimDispatchers, useClaimState } from 'state/claim/hooks'
import { useClaimDispatchers, useClaimState, useClaimTimeInfo } from 'state/claim/hooks'
import { ClaimStatus } from 'state/claim/actions'

type ClaimIntroductionProps = Pick<ClaimCommonTypes, 'hasClaims'> & {
Expand All @@ -14,7 +14,16 @@ export default function CanUserClaimMessage({ hasClaims, isAirdropOnly }: ClaimI
const { activeClaimAccount, claimStatus } = useClaimState()
const { setActiveClaimAccount } = useClaimDispatchers()

const end = useAirdropDeadline()
const { airdropDeadline, deployment, investmentDeadline, isAirdropWindowOpen, isInvestmentWindowOpen } =
useClaimTimeInfo()
// console.log('Deadlines', {
// airdropDeadline: airdropDeadline && new Date(airdropDeadline).toISOString(),
// deployment: deployment && new Date(deployment).toISOString(),
// investmentDeadline: investmentDeadline && new Date(investmentDeadline).toISOString(),

// isAirdropWindowOpen,
// isInvestmentWindowOpen,
// })

// only show when active claim account
if (!activeClaimAccount || claimStatus !== ClaimStatus.DEFAULT) return null
Expand All @@ -26,7 +35,7 @@ export default function CanUserClaimMessage({ hasClaims, isAirdropOnly }: ClaimI
<Trans>
Thank you for being a supporter of CowSwap and the CoW protocol. As an important member of the CowSwap
Community you may claim vCOW to be used for voting and governance. You can claim your tokens until{' '}
<i>{end && new Date(end).toLocaleString()}</i>
<i>{airdropDeadline && new Date(airdropDeadline).toLocaleString()}</i>
<ExternalLink href="https://cow.fi/">Read more about vCOW</ExternalLink>
</Trans>
</p>
Expand Down

0 comments on commit ba6ff22

Please sign in to comment.