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 afb40f3 + 6b222dc commit bf8a8e0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
5 changes: 3 additions & 2 deletions src/api/type.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
export interface applicationOK {
id: string;
user_id: string;
username: string;
start_time: string;
id: string;
end_time: string;
grade: number;
class_num: number;
Expand Down Expand Up @@ -52,7 +53,7 @@ export interface ChangeStatus {
}

export interface FloorClass {
id: string;
user_id: string;
class_num: number;
classroom_name: string;
end_period: number;
Expand Down
2 changes: 1 addition & 1 deletion src/app/classChange/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,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
12 changes: 8 additions & 4 deletions src/app/outAccept/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -216,23 +216,27 @@ const OutAccept = () => {
{selectedTab
? applicationData?.map((item, index) => (
<NonReturn
id={item.id}
id={item.user_id}
type="accept"
key={index}
returnTime={`${item.start_time}~${item.end_time}`}
name={getStudentString(item)}
onClick={() => handleAcceptListClick(item.id, item.username)}
onClick={() =>
handleAcceptListClick(item.user_id, item.username)
}
reason={item.reason}
/>
))
: applicationData?.map((item, index) => (
<NonReturn
id={item.id}
id={item.user_id}
type="accept"
key={index}
returnTime={`${item.start_time}~`}
name={getStudentString(item)}
onClick={() => handleAcceptListClick(item.id, item.username)}
onClick={() =>
handleAcceptListClick(item.user_id, item.username)
}
reason={item.reason}
/>
))}
Expand Down

0 comments on commit bf8a8e0

Please sign in to comment.