Improved homepage

This commit is contained in:
Keannu Christian Bernasol 2023-08-10 17:23:12 +08:00
parent 33ffcde6be
commit 529a7a75fd
6 changed files with 246 additions and 82 deletions

View file

@ -122,6 +122,23 @@ export interface PatchStudentData {
avatar?: string | null;
}
interface Location {
latitude: number;
longitude: number;
}
export interface StudentStatus {
user?: string;
subject?: string;
location?: Location;
landmark?: string | null;
active?: boolean;
}
export type StudentStatusParams = [boolean, StudentStatus];
export type LocationType = Location.LocationObject;
export interface StudentData {
first_name: string;
last_name: string;
@ -135,21 +152,8 @@ export interface StudentData {
course_shortname: string;
year_level: string;
yearlevel_shortname: string;
subjects: string[]; // To-do
subjects: string[];
username: string;
}
export type UserInfoParams = [boolean, StudentData];
interface Location {
latitude: number;
longtitude: number;
}
export interface StudentStatusParams {
subject?: string;
location?: Location;
active?: boolean;
}
export type LocationType = Location.LocationObject;