Skip to content

Commit

Permalink
fixed bad import in EnrollmentHistoryPopup
Browse files Browse the repository at this point in the history
  • Loading branch information
srukelman committed Feb 2, 2024
1 parent af60ea6 commit ea3a4f1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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(() => {
Expand Down

0 comments on commit ea3a4f1

Please sign in to comment.