From 3dd75cb41b2e6ff2720f9c3a2729773c5766fa29 Mon Sep 17 00:00:00 2001 From: stcalica Date: Sun, 9 Jun 2024 00:53:58 -0700 Subject: [PATCH] added start and end date to tiers --- components/PricingTiers/index.tsx | 4 ++++ constants/tiers.tsx | 12 ++++++------ templates/FormsPage/Main/index.tsx | 2 +- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/components/PricingTiers/index.tsx b/components/PricingTiers/index.tsx index c6e5401..83ad820 100644 --- a/components/PricingTiers/index.tsx +++ b/components/PricingTiers/index.tsx @@ -5,6 +5,8 @@ type tierType = { id: string; price: number; title: string; + startDate: string; + endDate: string; }; const PricingTier = ({tier}: {tier: tierType}) => ( @@ -12,6 +14,8 @@ const PricingTier = ({tier}: {tier: tierType}) => ( w-full xl:min-w-[400px] h-[250px] text-white">

${tier.price}

{tier.title}
+

{tier.startDate} - {tier.endDate}

+ ); export default PricingTier; diff --git a/constants/tiers.tsx b/constants/tiers.tsx index 72bd506..3ca31a3 100644 --- a/constants/tiers.tsx +++ b/constants/tiers.tsx @@ -3,21 +3,21 @@ export const tiers = [ id: "0", title: "Early Registration", price: parseFloat("65"), - startDate: "", - endDate: "" + startDate: "Jun 1st", + endDate: "Aug 16th" }, { id: "1", title: "Regular Registration", price: parseFloat("85"), - startDate: "", - endDate: "" + startDate: "Aug 17th", + endDate: "Sept 7th" }, { id: "2", title: "Late Registration", price: parseFloat("105"), - startDate: "", - endDate: "" + startDate: "Sept 8th", + endDate: "Sept 13th" }, ]; \ No newline at end of file diff --git a/templates/FormsPage/Main/index.tsx b/templates/FormsPage/Main/index.tsx index 80a5985..97bde64 100644 --- a/templates/FormsPage/Main/index.tsx +++ b/templates/FormsPage/Main/index.tsx @@ -17,4 +17,4 @@ const Main = ({}: MainProps) => ( ); -export default Main; +export default Main; \ No newline at end of file