mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2025-05-17 03:48:06 +08:00
Improved subject selection in userinfo
This commit is contained in:
parent
ffde700a36
commit
1990be3972
2 changed files with 28 additions and 21 deletions
|
@ -47,6 +47,11 @@ export interface ActivationParams {
|
|||
token: string;
|
||||
}
|
||||
|
||||
export interface OptionType {
|
||||
label: string;
|
||||
value: string;
|
||||
}
|
||||
|
||||
// Semester
|
||||
export interface Semester {
|
||||
id: string;
|
||||
|
@ -80,16 +85,18 @@ export type CourseParams = [boolean, Courses];
|
|||
|
||||
// Subject
|
||||
export interface Subject {
|
||||
id: string;
|
||||
name: string;
|
||||
code: string;
|
||||
// courses: any[]; // To-do
|
||||
// year_levels: any[]; // To-do
|
||||
// semesters: any[]; // To-do
|
||||
}
|
||||
|
||||
export type Subjects = Array<Subject>;
|
||||
export type SubjectParams = [boolean, Subjects];
|
||||
|
||||
// For dropdown menu
|
||||
|
||||
export interface OnboardingParams {
|
||||
year_level: string;
|
||||
course: string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue