Skip to content

Commit

Permalink
πŸ† Display deadlines for not connected wallets (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
b-tarczynski authored Jul 10, 2024
1 parent c001538 commit ff5a021
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/frontend/src/components/info/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ import { TimeLeft } from './TimeLeft'
import { VoucherTimeLeft } from './VoucherTimeLeft'
import { Colors } from '@/styles/colors'
import { HeaderBar } from '@/components/common/Header'
import { AuctionState, useAuctionState } from '@/blockchain/hooks/useAuctionState'
import { useContractState } from '@/blockchain/hooks/useAuctionState'
import { MediaQueries } from '@/styles/mediaQueries'
import { ContractState } from '@/types/ContractState'

export const Header = () => {
const state = useAuctionState()
const { state } = useContractState()

return (
<Wrapper>
Expand All @@ -27,8 +28,8 @@ export const Header = () => {
)
}

function isClaimingFlow(state: AuctionState | undefined) {
return state === 'ClaimingFlow' || state === 'ClaimingClosed'
function isClaimingFlow(state: ContractState | undefined) {
return state === ContractState.RAFFLE_SETTLED || state === ContractState.CLAIMING_CLOSED
}

const Wrapper = styled.div`
Expand Down

0 comments on commit ff5a021

Please sign in to comment.