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 ( -
- - - Registration is opening soon! - - We are preparing the registration for next year's Armada. In the meanwhile, you are very welcome to report interest in this{" "} - - form - {" "} - and we will get back to you once registration is open! - - -
- ) - } - else if(((new Date(dates.ir.start)).getTime() < today) && (today < (new Date(dates.ir.end)).getTime())){ - return( + if (today < new Date(dates.ir.start).getTime()) { + return ( +
+ + + Registration is opening soon! + + We are preparing the registration for next year's Armada. In + the meanwhile, you are very welcome to report interest in this{" "} + + form + {" "} + and we will get back to you once registration is open! + + +
+ ) + } else if ( + new Date(dates.ir.start).getTime() < today && + today < new Date(dates.ir.end).getTime() + ) { + return (
- - - Initial Registration open - - In initial registration you apply to be an exhibitor at Armada. When you do so you commit to exhibit, but you don't have to specify your package yet. Read more about each stage{" "} - - here - {" "} - - -
+ + + Initial Registration open + + In initial registration you apply to be an exhibitor at Armada. When + you do so you commit to exhibit, but you don't have to specify + your package yet. Read more about each stage{" "} + + here + {" "} + + + ) } - + //default - return( -
- ) - + return
} diff --git a/src/app/exhibitor/_components/ExhibitorTimeline.tsx b/src/app/exhibitor/_components/ExhibitorTimeline.tsx index 4cfa9fc..4b642be 100644 --- a/src/app/exhibitor/_components/ExhibitorTimeline.tsx +++ b/src/app/exhibitor/_components/ExhibitorTimeline.tsx @@ -108,8 +108,8 @@ export async function ExhibitorTimeline() { their dream employer!

- 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() {