Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
hyuna committed Aug 20, 2024
2 parents 092a048 + 4c18ef4 commit 03bd43e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/apis/outAccept/outAccept.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export const useOutAccept = () => {
mutationFn: async (param) => {
try {
const response = await instance.patch(`${param.type}/status`, {
type: param.type,
status: param.status,
ids: param.ids,
});
Expand Down
6 changes: 2 additions & 4 deletions src/apis/outList/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ import apiError from "@/hook/apiError";
import { instance } from "..";
import { useMutation, useQueries, useQuery } from "@tanstack/react-query";

interface UuidProp {
id: string[];
}
interface applicationOK {
id: string;
username: string;
user_id: string;
start_time: string;
end_time: string;
grade: number;
Expand Down Expand Up @@ -55,7 +53,7 @@ interface ReturnHomeData {
}

interface earlyReturnHome {
id: string;
user_id: string;
username: string;
start_time: string;
grade: number;
Expand Down
2 changes: 1 addition & 1 deletion src/apis/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export interface changeClass {
}

export interface FloorClass {
id: string;
user_id: string;
class_num: number;
classroom_name: string;
end_period: number;
Expand Down
4 changes: 2 additions & 2 deletions src/app/classChange/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Modal from "../components/common/modal/page";
import useAcceptListSelection from "@/hook/hook";

interface FloorClass {
id: string;
user_id: string;
class_num: number;
classroom_name: string;
end_period: number;
Expand Down Expand Up @@ -154,7 +154,7 @@ const ClassChange = () => {
<ChangeClass
type="accept"
key={index}
onClick={() => handleAcceptListClick(item.id, item.username)}
onClick={() => handleAcceptListClick(item.user_id, item.username)}
prevClass={item.move}
nextClass={`${item.classroom_name}`}
student={getStudentString(item)}
Expand Down
2 changes: 1 addition & 1 deletion src/app/outAccept/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ const OutAccept = () => {
{data.map((dataItem, index) => (
<AcceptList
onClick={() =>
handleAcceptListClick(dataItem.id, dataItem.username)
handleAcceptListClick(dataItem.user_id, dataItem.username)
}
key={index}
time={`${dataItem.start_time} ~`}
Expand Down

0 comments on commit 03bd43e

Please sign in to comment.