From d5c1b56c753e87255a12fe8a226980d304cce432 Mon Sep 17 00:00:00 2001
From: Elara Liu <40444637+ZL-Asica@users.noreply.github.com>
Date: Fri, 6 Dec 2024 10:49:41 -0600
Subject: [PATCH] feat: add exporting all calendar events (#29) (#31)
Reverts 392-f24/OpenHands#29
---------
Co-authored-by: chip <49256163+chipanyanwu@users.noreply.github.com>
---
src/components/Schedule/index.tsx | 24 +++++++---
src/utils/generateICSFile.ts | 78 ++++++++++++-------------------
2 files changed, 47 insertions(+), 55 deletions(-)
diff --git a/src/components/Schedule/index.tsx b/src/components/Schedule/index.tsx
index f4e54cd..756bfe2 100644
--- a/src/components/Schedule/index.tsx
+++ b/src/components/Schedule/index.tsx
@@ -71,25 +71,35 @@ const ScheduleBase = ({ events, title, description }: ScheduleBaseProps) => {
setSelectedDate={setSelectedDate}
/>
-
+ <>
-
- Events for {selectedDate?.format('MMMM D, YYYY')}:
-
+
+ Events for {selectedDate?.format('MMMM D, YYYY')}:
+
{eventsForSelectedDate.length > 0 ? (
@@ -154,7 +164,7 @@ const ScheduleBase = ({ events, title, description }: ScheduleBaseProps) => {
No events for this date.
)}
-
+ >
{/* Event Details Modal */}