diff --git a/src/stories/components/CalendarHeader.stories.tsx b/src/stories/components/CalendarHeader.stories.tsx index 6833b7b18..047d86946 100644 --- a/src/stories/components/CalendarHeader.stories.tsx +++ b/src/stories/components/CalendarHeader.stories.tsx @@ -3,7 +3,7 @@ import { Meta, StoryObj } from '@storybook/react'; import CalendarHeader from '@views/components/common/CalendarHeader/CalenderHeader'; const meta = { - title: 'Components/CalendarHeader', + title: 'Components/Common/CalendarHeader', component: CalendarHeader, parameters: { layout: 'centered', diff --git a/src/stories/components/PopupMain.stories.tsx b/src/stories/components/PopupMain.stories.tsx deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/views/components/common/CalendarGrid/CalendarGrid.tsx b/src/views/components/common/CalendarGrid/CalendarGrid.tsx index 43050e423..5d9742f60 100644 --- a/src/views/components/common/CalendarGrid/CalendarGrid.tsx +++ b/src/views/components/common/CalendarGrid/CalendarGrid.tsx @@ -1,12 +1,12 @@ -import React, {useRef} from 'react'; +import React, { useRef } from 'react'; import html2canvas from 'html2canvas'; import { DAY_MAP } from 'src/shared/types/CourseMeeting'; import { CalendarGridCourse } from 'src/views/hooks/useFlattenedCourseSchedule'; +import calIcon from 'src/assets/icons/cal.svg'; +import pngIcon from 'src/assets/icons/png.svg'; import CalendarCell from '../CalendarGridCell/CalendarGridCell'; import CalendarCourseCell from '../CalendarCourseCell/CalendarCourseCell'; import styles from './CalendarGrid.module.scss'; -import calIcon from 'src/assets/icons/cal.svg'; -import pngIcon from 'src/assets/icons/png.svg'; const daysOfWeek = Object.keys(DAY_MAP).filter(key => !['S', 'SU'].includes(key)); const hoursOfDay = Array.from({ length: 14 }, (_, index) => index + 8); @@ -34,12 +34,12 @@ interface Props { * Grid of CalendarGridCell components forming the user's course schedule calendar view * @param props */ -function CalendarGrid({ courseCells, saturdayClass }: React.PropsWithChildren ): JSX.Element { +function CalendarGrid({ courseCells, saturdayClass }: React.PropsWithChildren): JSX.Element { const calendarRef = useRef(null); // Create a ref for the calendar grid const saveAsPNG = () => { if (calendarRef.current) { - html2canvas(calendarRef.current).then((canvas) => { + html2canvas(calendarRef.current).then(canvas => { // Create an a element to trigger download const a = document.createElement('a'); a.href = canvas.toDataURL('image/png'); @@ -85,19 +85,22 @@ function CalendarGrid({ courseCells, saturdayClass }: React.PropsWithChildren - + - ))} */} + ))}
-
{/* First divider */} +
{/* First divider */} -
{/* Second divider */} +
{/* Second divider */}
diff --git a/src/views/components/common/CalendarHeader/CalenderHeader.tsx b/src/views/components/common/CalendarHeader/CalenderHeader.tsx index b5d07274f..7f11d3480 100644 --- a/src/views/components/common/CalendarHeader/CalenderHeader.tsx +++ b/src/views/components/common/CalendarHeader/CalenderHeader.tsx @@ -12,40 +12,41 @@ import ScheduleTotalHoursAndCourses from '../ScheduleTotalHoursAndCourses/Schedu import CourseStatus from '../CourseStatus/CourseStatus'; const CalendarHeader = () => ( -
-
+
+ + DATA UPDATED ON: 12:00 AM 02/01/2024 +
+
+
+
+ + + +
+
+
+
- - - - - - - -
-
- -