Skip to content

Commit

Permalink
프로덕션 반영을 위해 머지합니다. (#176)
Browse files Browse the repository at this point in the history
* fix: 관리자 심사현황/결과 테이블 단계 필터 수정단계 삭제

* fix: 테이블 필터 선택시 1 페이지로 돌아가도록 수정

* fix: textarea css 속성 변경
  • Loading branch information
hynseok authored Jul 4, 2024
1 parent bed4414 commit 875817a
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

.contentInput {
height: 100%;
white-space: pre-wrap;
}

.wrapper {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ function ProfReviewListSection({ isFinal }: Props) {
[name]: value === "" ? undefined : value,
pageNumber: REFRESH_DEFAULT_PAGE_NUMBER,
})) as any);
setPageNumber(REFRESH_DEFAULT_PAGE_NUMBER);
};

useEffect(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ function ProfRevisionListSection() {
[name]: value === "" ? undefined : value,
pageNumber: REFRESH_DEFAULT_PAGE_NUMBER,
})) as any);
setPageNumber(REFRESH_DEFAULT_PAGE_NUMBER);
};

useEffect(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ function AchievementListSection() {
[name]: value === "" ? undefined : value,
pageNumber: REFRESH_DEFAULT_PAGE_NUMBER,
})) as any);
setPageNumber(REFRESH_DEFAULT_PAGE_NUMBER);
};

// Todo: 파일명 및 필터 저장 방식 논의
Expand Down Expand Up @@ -222,7 +223,11 @@ function AchievementListSection() {
))}
</Table>
<Center>
<Pagination total={1} />
<Pagination
value={pageNumber}
onChange={setPageNumber}
total={pageData ? pageData?.totalPages : 1}
/>
</Center>
</Stack>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ function ProfessorListSection() {
[name]: value === "" ? undefined : value,
pageNumber: REFRESH_DEFAULT_PAGE_NUMBER,
})) as any);
setPageNumber(REFRESH_DEFAULT_PAGE_NUMBER);
};

useEffect(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ function ReviewListSection() {
[name]: value === "" ? undefined : value,
pageNumber: REFRESH_DEFAULT_PAGE_NUMBER,
})) as any);
setPageNumber(REFRESH_DEFAULT_PAGE_NUMBER);
};

useEffect(() => {
Expand Down Expand Up @@ -155,7 +156,7 @@ function ReviewListSection() {
data={[
{ label: "예심", value: "PRELIMINARY" },
{ label: "본심", value: "MAIN" },
{ label: "수정 단계", value: "REVISION" },
// { label: "수정 단계", value: "REVISION" },
]}
/>
</Table.Data>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { useRouter } from "next/navigation";
import { ChangeEvent, useEffect, useState } from "react";
import { ActionIcon, Button, Center, Group, Popover, Select, Skeleton, Stack } from "@mantine/core";
import { SectionHeader } from "@/components/common/SectionHeader";
import { IconDownload } from "@tabler/icons-react";
import { IconDownload, IconRotate } from "@tabler/icons-react";
import { Table } from "@/components/common/Table";
import Pagination from "@/components/common/Pagination";
import { DepartmentSelect } from "@/components/common/selects/DepartmentSelect";
Expand Down Expand Up @@ -101,6 +101,7 @@ function ReviewResultListSection() {
[name]: value === "" ? undefined : value,
pageNumber: REFRESH_DEFAULT_PAGE_NUMBER,
})) as any);
setPageNumber(REFRESH_DEFAULT_PAGE_NUMBER);
};

useEffect(() => {
Expand Down Expand Up @@ -181,7 +182,7 @@ function ReviewResultListSection() {
data={[
{ label: "예심", value: "PRELIMINARY" },
{ label: "본심", value: "MAIN" },
{ label: "수정 단계", value: "REVISION" },
// { label: "수정 단계", value: "REVISION" },
]}
/>
</Table.Data>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ function StudentListSection() {
[name]: value === "" ? undefined : value,
pageNumber: REFRESH_DEFAULT_PAGE_NUMBER,
})) as any);
setPageNumber(REFRESH_DEFAULT_PAGE_NUMBER);
};

useEffect(() => {
Expand Down

0 comments on commit 875817a

Please sign in to comment.