Merge branch 'main' of https://code.sdsdev.co.kr/SDSRV-IDP/sbt-idp into BE/review_page
This commit is contained in:
commit
d0f15040ef
@ -60,7 +60,6 @@ const ReviewPage = () => {
|
||||
const [selectedFileData, setSelectedFileData] = useState(null);
|
||||
const [selectedFileDataSource, setSelectedFileDataSource] = useState({});
|
||||
const [selectedFileName, setSelectedFileName] = useState(null);
|
||||
const [disableUpdateFileBtn, setDisableUpdateFileBtn] = useState(false);
|
||||
|
||||
// Default date range: 1 month ago to today
|
||||
const [filterDateRange, setFilterDateRange] = useState(['', '']);
|
||||
@ -155,8 +154,6 @@ const ReviewPage = () => {
|
||||
filterAccuracy,
|
||||
)
|
||||
.then((data) => {
|
||||
// setRequests(data?.subscription_requests);
|
||||
// setHasNextRequest(data?.subscription_requests.length > 1);
|
||||
setTotalPages(data?.page?.total_requests);
|
||||
setHasNextRequest(requestIndex < data?.page?.total_requests);
|
||||
const requestData = fetchRequest(
|
||||
@ -206,8 +203,6 @@ const ReviewPage = () => {
|
||||
filterAccuracy,
|
||||
).then((data) => {
|
||||
setTotalPages(data?.page?.total_requests);
|
||||
// setRequests(data?.subscription_requests);
|
||||
// setHasNextRequest(data?.subscription_requests.length > 1);
|
||||
setHasNextRequest(1 < data?.page?.total_requests);
|
||||
const firstRequest = fetchRequest(
|
||||
data?.subscription_requests[0].RequestID,
|
||||
@ -234,7 +229,6 @@ const ReviewPage = () => {
|
||||
filterAccuracy,
|
||||
).then((data) => {
|
||||
setTotalPages(data?.page?.total_requests);
|
||||
// setRequests(data?.subscription_requests);
|
||||
setHasNextRequest(1 < data?.page?.total_requests);
|
||||
const firstRequest = fetchRequest(
|
||||
data?.subscription_requests[0].RequestID,
|
||||
@ -628,6 +622,7 @@ const ReviewPage = () => {
|
||||
type='primary'
|
||||
shape='default'
|
||||
size='middle'
|
||||
disabled={currentRequest && currentRequest['Is Reviewed'] }
|
||||
style={{ minWidth: '120px', alignSelf: 'flex-end' }}
|
||||
onClick={handleConfirmReview}
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user