Improved subject selection in userinfo

This commit is contained in:
Keannu Christian Bernasol 2023-07-18 17:20:11 +08:00
parent ffde700a36
commit 1990be3972
2 changed files with 28 additions and 21 deletions

View file

@ -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;