mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2025-05-17 11:58:06 +08:00
Code cleanup for multiple pages and components
This commit is contained in:
parent
14e14b8bb6
commit
68778cea7a
5 changed files with 22 additions and 13 deletions
|
@ -18,6 +18,7 @@ import {
|
|||
OptionType,
|
||||
StudentStatusType,
|
||||
PatchUserInfoType,
|
||||
StudentStatusPatchType,
|
||||
} from "../../interfaces/Interfaces";
|
||||
import Button from "../../components/Button/Button";
|
||||
import { Image } from "react-native";
|
||||
|
@ -50,7 +51,7 @@ export default function UserInfoPage() {
|
|||
|
||||
// Student Status
|
||||
const studentstatus_mutation = useMutation({
|
||||
mutationFn: async (info: StudentStatusType) => {
|
||||
mutationFn: async (info: StudentStatusPatchType) => {
|
||||
const data = await PatchStudentStatus(info);
|
||||
if (data[0] != true) {
|
||||
return Promise.reject(new Error());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue