Skip to content

Commit

Permalink
Display deadlines for not connected wallets
Browse files Browse the repository at this point in the history
  • Loading branch information
b-tarczynski committed Jul 10, 2024
1 parent c001538 commit ac3364d
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 ac3364d

Please sign in to comment.