From 4cb070c82c07e036f0012a753d471b622e89a0e1 Mon Sep 17 00:00:00 2001 From: zmeyer44 Date: Fri, 27 Oct 2023 18:37:31 -0400 Subject: [PATCH] minor improvments --- .../events/_components/CalendarSection.tsx | 2 +- app/(app)/events/page.tsx | 12 +++--- .../explore/_sections/ExploreCreators.tsx | 2 +- .../Cards/CalendarEvent/LargeFeedCard.tsx | 42 +++++++++++++++---- 4 files changed, 42 insertions(+), 16 deletions(-) diff --git a/app/(app)/events/_components/CalendarSection.tsx b/app/(app)/events/_components/CalendarSection.tsx index 5a5e123..46986dc 100644 --- a/app/(app)/events/_components/CalendarSection.tsx +++ b/app/(app)/events/_components/CalendarSection.tsx @@ -124,7 +124,7 @@ function CalendarIconOpacity({ date }: { date: Date }) { }; }, []); return ( -
+
diff --git a/app/(app)/events/page.tsx b/app/(app)/events/page.tsx index 9e948cb..3c2a646 100644 --- a/app/(app)/events/page.tsx +++ b/app/(app)/events/page.tsx @@ -26,7 +26,12 @@ export default function Page() { } return ( -
+
+
+

+ Upcoming Events +

+
{eventsByDay.map((e) => ( @@ -51,8 +56,7 @@ function groupEventsByDay(events: NDKEvent[]) { } } const groupedArray = Object.entries(eventDays) - .sort(([aKey], [bKey, test]) => { - console.log("test", test); + .sort(([aKey], [bKey]) => { const aDay = parseInt(aKey); const bDay = parseInt(bKey); @@ -64,7 +68,5 @@ function groupEventsByDay(events: NDKEvent[]) { return 0; }) .map(([_, events]) => events); - console.log("object", eventDays); - console.log("returing", groupedArray); return groupedArray; } diff --git a/app/(app)/explore/_sections/ExploreCreators.tsx b/app/(app)/explore/_sections/ExploreCreators.tsx index 01e15bf..47fae98 100644 --- a/app/(app)/explore/_sections/ExploreCreators.tsx +++ b/app/(app)/explore/_sections/ExploreCreators.tsx @@ -15,7 +15,7 @@ export default function ExploreCreators() {

- Explore Creators + Explore Calendars

{!!users.length && ( -
- +
+
)} -
- -

- 124 Main street, first ave, NY NY, 118034. Across the street from - too long -

-
+ {!!startDate && ( +
+ +

+ {formatDate(startDate, "h:mm a")} + {!!endDate && ( + <> + {" "} + - {formatDate(endDate, "h:mm a")} + + )} +

+
+ )} + {!!location && ( +
+ +

+ {location} +

+
+ )}