fix: correct Material UI icon naming in Header.tsx and update timetable components

- Fix icon naming: remove 'Icon' suffix from MUI icon components in Header.tsx
  (AccessTime, Close, Person, School, Schedule, Class, Book, Settings, Student, Login, Logout)
- Update timetable components to use UserContext instead of ProfileContext
- Fix timetableService naming collision and circular reference
- Update various components for consistency
This commit is contained in:
Agent Zero
2026-02-26 07:28:47 +00:00
parent 00a6f941c7
commit 067df34c50
16 changed files with 123 additions and 122 deletions
+8 -8
View File
@@ -454,7 +454,7 @@ const SimpleUploadTest: React.FC = () => {
<Card>
<CardHeader
title="Upload Controls"
avatar={<UploadIcon />}
avatar={<Upload />}
/>
<CardContent>
<Box sx={{ mb: 2 }}>
@@ -497,7 +497,7 @@ const SimpleUploadTest: React.FC = () => {
/>
<Button
variant="outlined"
startIcon={<UploadIcon />}
startIcon={<Upload />}
onClick={() => fileInputRef.current?.click()}
disabled={!selectedCabinet || loading}
>
@@ -515,7 +515,7 @@ const SimpleUploadTest: React.FC = () => {
<Button
variant="outlined"
startIcon={<FolderOpenIcon />}
startIcon={<FolderOpen />}
onClick={handleDirectoryPicker}
disabled={!selectedCabinet || loading}
>
@@ -524,7 +524,7 @@ const SimpleUploadTest: React.FC = () => {
<Button
variant="outlined"
startIcon={<RefreshIcon />}
startIcon={<Refresh />}
onClick={() => {
setCurrentPage(1);
setSearchTerm('');
@@ -554,7 +554,7 @@ const SimpleUploadTest: React.FC = () => {
<Card>
<CardHeader
title="System Info"
avatar={<InfoIcon />}
avatar={<Info />}
/>
<CardContent>
<Box sx={{ mb: 2 }}>
@@ -633,7 +633,7 @@ const SimpleUploadTest: React.FC = () => {
title={
<Box sx={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}>
<Box sx={{ display: 'flex', alignItems: 'center', gap: 1 }}>
<FileIcon />
<InsertDriveFile />
<Typography variant="h6">
Files {pagination && `(${pagination.total_count} total)`}
</Typography>
@@ -748,7 +748,7 @@ const SimpleUploadTest: React.FC = () => {
}
>
<ListItemIcon>
{file.is_directory ? <FolderIcon /> : <FileIcon />}
{file.is_directory ? <FolderIcon /> : <InsertDriveFile />}
</ListItemIcon>
<ListItemText
primary={
@@ -812,7 +812,7 @@ const SimpleUploadTest: React.FC = () => {
<Dialog open={showUploadDialog} onClose={() => !isUploading && setShowUploadDialog(false)} maxWidth="md" fullWidth>
<DialogTitle>
<Box display="flex" alignItems="center" gap={1}>
<FolderOpenIcon />
<FolderOpen />
Directory Upload Progress
{isUploading && <LinearProgress sx={{ flexGrow: 1, ml: 2 }} />}
</Box>