From ea3a4f16572b58cd659687b11b8e79c78fd1c6eb Mon Sep 17 00:00:00 2001 From: Sean Kelman Date: Fri, 2 Feb 2024 10:35:28 -0800 Subject: [PATCH] fixed bad import in EnrollmentHistoryPopup --- .../RightPane/SectionTable/EnrollmentHistoryPopup.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/antalmanac/src/components/RightPane/SectionTable/EnrollmentHistoryPopup.tsx b/apps/antalmanac/src/components/RightPane/SectionTable/EnrollmentHistoryPopup.tsx index 4a475aac7..3394532ad 100644 --- a/apps/antalmanac/src/components/RightPane/SectionTable/EnrollmentHistoryPopup.tsx +++ b/apps/antalmanac/src/components/RightPane/SectionTable/EnrollmentHistoryPopup.tsx @@ -3,7 +3,7 @@ import { LineChart, Line, CartesianGrid, ResponsiveContainer, XAxis, YAxis, Tool import { Box, Link, Typography, Skeleton, useMediaQuery } from '@mui/material'; import { MOBILE_BREAKPOINT } from '../../../globals'; import { DepartmentEnrollmentHistory, EnrollmentHistory } from '$lib/enrollmentHistory'; -import { isDarkMode } from '$lib/helpers'; +import { useThemeStore } from '$stores/SettingsStore'; export interface EnrollmentHistoryPopupProps { department: string; @@ -28,9 +28,9 @@ export function EnrollmentHistoryPopup({ department, courseNumber }: EnrollmentH enrollmentHistory.quarter } | ${enrollmentHistory.instructors.join(', ')}`; }, [courseNumber, department, enrollmentHistory]); - + const isDarkMode = useThemeStore((state) => state.isDark); const encodedDept = useMemo(() => encodeURIComponent(department), [department]); - const axisColor = isDarkMode() ? '#fff' : '#111'; + const axisColor = isDarkMode ? '#fff' : '#111'; const tooltipDateColor = '#111'; useEffect(() => {