mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2025-05-17 03:48:06 +08:00
Pray to the gods the duplicate subjects bug is fixed. Move irregular status toggle to user info page from subjects page
This commit is contained in:
parent
283c030b37
commit
3331ccb974
5 changed files with 79 additions and 155 deletions
|
@ -85,11 +85,12 @@ export type CourseParams = [boolean, Courses];
|
|||
|
||||
// Subject
|
||||
export interface Subject {
|
||||
id: number;
|
||||
name: string;
|
||||
code: string;
|
||||
// courses: any[]; // To-do
|
||||
// year_levels: any[]; // To-do
|
||||
// semesters: any[]; // To-do
|
||||
course: string;
|
||||
year_level: string;
|
||||
semester: string;
|
||||
}
|
||||
|
||||
export type Subjects = Array<Subject>;
|
||||
|
@ -110,6 +111,7 @@ export interface PatchStudentData {
|
|||
semester?: string | null;
|
||||
subjects?: any[] | null; // To-do, replace 'any' with your actual type
|
||||
year_level?: string | null;
|
||||
irregular?: boolean | null;
|
||||
}
|
||||
|
||||
export interface StudentData {
|
||||
|
@ -118,14 +120,14 @@ export interface StudentData {
|
|||
email: string;
|
||||
avatar: string;
|
||||
student_id_number: string;
|
||||
is_banned: boolean;
|
||||
irregular: boolean;
|
||||
semester: string;
|
||||
semester_shortname: string;
|
||||
course: string;
|
||||
course_shortname: string;
|
||||
year_level: string;
|
||||
yearlevel_shortname: string;
|
||||
subjects: any[]; // To-do
|
||||
subjects: Subject[]; // To-do
|
||||
username: string;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue