diff --git a/.husky/pre-commit b/.husky/pre-commit index e290538..72c4429 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,2 +1 @@ -#!/usr/bin/env sh -npx lint-staged && npm run build +npm test diff --git a/components/custom/EventDescription.tsx b/components/custom/EventDescription.tsx index 03b4497..f82eba4 100644 --- a/components/custom/EventDescription.tsx +++ b/components/custom/EventDescription.tsx @@ -48,7 +48,12 @@ const EventDescription: React.FC = ({ variant="outline" className="text-light-purple bg-blue-100 px-3 py-1 rounded-full" > - Price: ${eventDetails.ticketPrice.toFixed(2)} + {/*Show price and format by separating triplets of digits*/} + Price: $ + {eventDetails.ticketPrice.toLocaleString(undefined, { + minimumFractionDigits: 2, + maximumFractionDigits: 2, + })} @@ -60,9 +65,23 @@ const EventDescription: React.FC = ({

{eventDetails.description}

-

Location:
{eventDetails.location}


-

Date:
{eventDetails.date}


-

Host:
{eventDetails.host}

+

+ Location: +
+ {eventDetails.location} +

+
+

+ Date: +
+ {eventDetails.date} +

+
+

+ Host: +
+ {eventDetails.host} +

{eventDetails.ticketsSold / eventDetails.capacity >= 0.9 && (
Limited Tickets Remaining!