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 69157ea..2cd97d0 100644 --- a/components/custom/EventDescription.tsx +++ b/components/custom/EventDescription.tsx @@ -49,7 +49,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, + })} @@ -61,6 +66,23 @@ const EventDescription: React.FC = ({

{eventDetails.description}

+

+ Location: +
+ {eventDetails.location} +

+
+

+ Date: +
+ {eventDate} +

+
+

+ Host: +
+ {eventDetails.host} +

Location:
{eventDetails.location}


Date:
{eventDate}


Host:
{eventDetails.host}