fix(contexts): replace ProfileContext with UserContext in timetable pages

This commit is contained in:
Agent Zero
2026-02-26 07:09:43 +00:00
parent c7207eb805
commit 00a6f941c7
5 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -2,13 +2,13 @@ import React, { useEffect, useState } from 'react';
import { useParams, Link, useNavigate } from 'react-router-dom';
import { AccessTimeIcon, AddIcon, ArrowBackIcon, CalendarTodayIcon, DeleteIcon, EditIcon, MenuBookIcon, PeopleIcon } from '@mui/icons-material';
import useTimetableStore from '../../stores/timetableStore';
import { useProfile } from '../../contexts/ProfileContext';
import { useUser } from '../../contexts/UserContext';
import Modal from '../../components/common/Modal';
const ClassDetailPage: React.FC = () => {
const { classId } = useParams<{ classId: string }>();
const navigate = useNavigate();
const { profile } = useProfile();
const { profile } = useUser();
const {
currentClass,
timetables,