diff --git a/src/app/exhibitor/_components/CurrentStatus.tsx b/src/app/exhibitor/_components/CurrentStatus.tsx index f3e5e88..a6e5da0 100644 --- a/src/app/exhibitor/_components/CurrentStatus.tsx +++ b/src/app/exhibitor/_components/CurrentStatus.tsx @@ -7,7 +7,7 @@ import Link from "next/link" //ASSUMPTION: the start date will be first for fair dates export async function CurrentStatus() { const dates = await fetchDates() - const today = Date.now() //.toISOString(); + const today = Date.now() //.toISOString(); console.log(today) function formatDate(date: string) { @@ -16,48 +16,49 @@ export async function CurrentStatus() { ) } - - if(today < (new Date(dates.ir.start)).getTime()){ - return ( -
- In Initial Registration you don't need to choose a package, and - the packages are outlined{" "} + In Initial Registration you don&apost need to choose a package, + and the packages are outlined{" "} @@ -213,7 +213,7 @@ export async function ExhibitorTimeline() { href="mailto:sales@armada.nu"> sales@armada.nu {" "} - or your sales representative and they'll guide you through it. + or your sales representative and they&aposll guide you through it. Maybe you want to talk to a few students in a more cozy setting? Or stand out extra on the fair compared to everyone else? We can help you do that. diff --git a/src/components/shared/hooks/api/useDates.tsx b/src/components/shared/hooks/api/useDates.tsx index 2bdb59d..b53fb76 100644 --- a/src/components/shared/hooks/api/useDates.tsx +++ b/src/components/shared/hooks/api/useDates.tsx @@ -12,11 +12,16 @@ interface FairDate { ir: { start: string end: string + acceptance: string } fr: { start: string end: string } + events: { + start: string + end: string + } } export async function fetchDates() {