fix(contexts): replace ProfileContext with UserContext in timetable pages
This commit is contained in:
@@ -2,10 +2,10 @@ import React, { useEffect } from 'react';
|
||||
import { Link } from 'react-router-dom';
|
||||
import { AccessTimeIcon, KeyboardArrowRightIcon, MenuBookIcon, PeopleIcon, SchoolIcon } from '@mui/icons-material';
|
||||
import useTimetableStore from '../../stores/timetableStore';
|
||||
import { useProfile } from '../../contexts/ProfileContext';
|
||||
import { useUser } from '../../contexts/UserContext';
|
||||
|
||||
const MyClassesPage: React.FC = () => {
|
||||
const { profile } = useProfile();
|
||||
const { profile } = useUser();
|
||||
const {
|
||||
myClasses,
|
||||
myClassesLoading,
|
||||
|
||||
Reference in New Issue
Block a user