Optimized homepage rendering and removed overly complicated components

This commit is contained in:
Keannu Christian Bernasol 2023-09-24 21:02:34 +08:00
parent 19d19c3dd5
commit 1bd07f9edd
5 changed files with 129 additions and 298 deletions

View file

@ -296,3 +296,17 @@ export async function GetStudentStatusListFilteredCurrentLocation() {
return [false, error_message];
});
}
export async function GetStudyGroupListFiltered() {
const config = await GetConfig();
return instance
.get("/api/v1/study_groups/near/", config)
.then((response) => {
console.log("Data:", response.data);
return [true, response.data];
})
.catch((error) => {
let error_message = ParseError(error);
return [false, error_message];
});
}