From feaaac73f7e4f4010ab7eb39db9c8b1841f71f15 Mon Sep 17 00:00:00 2001 From: "focp212@naver.com" Date: Tue, 28 Oct 2025 11:08:50 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A1=9C=EA=B7=B8=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ui/fund-account/result-list-wrap.tsx | 4 --- .../ui/fund-account/transfer-list-wrap.tsx | 4 --- .../link-payment-wait-send-wrap.tsx | 4 --- src/entities/alarm/ui/alarm-list.tsx | 4 --- src/entities/settlement/ui/list-wrap.tsx | 33 +++++++------------ src/entities/vat-return/ui/list-wrap.tsx | 4 --- .../account-holder-auth-page.tsx | 4 --- .../account-holder-search-page.tsx | 4 --- .../additional-service/alimtalk/list-page.tsx | 4 --- .../additional-service/ars/list-page.tsx | 4 --- .../face-auth/face-auth-page.tsx | 4 --- .../key-in-payment/key-in-payment-page.tsx | 4 --- .../additional-service/payout/list-page.tsx | 4 --- .../sms-payment/sms-payment-page.tsx | 5 +-- src/pages/support/faq/list-page.tsx | 4 --- src/pages/support/notice/list-page.tsx | 4 --- src/pages/support/qna/list-page.tsx | 1 - .../transaction/all-transaction/list-page.tsx | 4 --- src/pages/transaction/billing/list-page.tsx | 4 --- .../transaction/cash-receipt/list-page.tsx | 4 --- src/pages/transaction/escrow/list-page.tsx | 4 --- src/pages/vat-return/detail-page.tsx | 11 ++++++- 22 files changed, 22 insertions(+), 100 deletions(-) diff --git a/src/entities/additional-service/ui/fund-account/result-list-wrap.tsx b/src/entities/additional-service/ui/fund-account/result-list-wrap.tsx index 0b9e5cb..9a96b98 100644 --- a/src/entities/additional-service/ui/fund-account/result-list-wrap.tsx +++ b/src/entities/additional-service/ui/fund-account/result-list-wrap.tsx @@ -56,15 +56,11 @@ export const FundAccountResultListWrap = () => { const onIntersect: IntersectionObserverCallback = (entries: Array) => { entries.forEach((entry: IntersectionObserverEntry) => { if(entry.isIntersecting){ - console.log('Element is now intersecting with the root. [' + onActionIntersect + ']'); if(onActionIntersect && !!pageParam.cursor){ setOnActionIntersect(false); callList('page'); } } - else{ - console.log('Element is no longer intersecting with the root.'); - } }); }; diff --git a/src/entities/additional-service/ui/fund-account/transfer-list-wrap.tsx b/src/entities/additional-service/ui/fund-account/transfer-list-wrap.tsx index c8a8a2a..c69e8e1 100644 --- a/src/entities/additional-service/ui/fund-account/transfer-list-wrap.tsx +++ b/src/entities/additional-service/ui/fund-account/transfer-list-wrap.tsx @@ -55,15 +55,11 @@ export const FundAccountTransferListWrap = () => { const onIntersect: IntersectionObserverCallback = (entries: Array) => { entries.forEach((entry: IntersectionObserverEntry) => { if(entry.isIntersecting){ - console.log('Element is now intersecting with the root. [' + onActionIntersect + ']'); if(onActionIntersect && !!pageParam.cursor){ setOnActionIntersect(false); callList('page'); } } - else{ - console.log('Element is no longer intersecting with the root.'); - } }); }; diff --git a/src/entities/additional-service/ui/link-payment/link-payment-wait-send-wrap.tsx b/src/entities/additional-service/ui/link-payment/link-payment-wait-send-wrap.tsx index d9db651..2b4e662 100644 --- a/src/entities/additional-service/ui/link-payment/link-payment-wait-send-wrap.tsx +++ b/src/entities/additional-service/ui/link-payment/link-payment-wait-send-wrap.tsx @@ -43,15 +43,11 @@ export const LinkPaymentWaitSendWrap = () => { const onIntersect: IntersectionObserverCallback = (entries: Array) => { entries.forEach((entry: IntersectionObserverEntry) => { if(entry.isIntersecting){ - console.log('Element is now intersecting with the root. [' + onActionIntersect + ']'); if(onActionIntersect && !!pageParam.cursor){ setOnActionIntersect(false); callList('page'); } } - else{ - console.log('Element is no longer intersecting with the root.'); - } }); }; diff --git a/src/entities/alarm/ui/alarm-list.tsx b/src/entities/alarm/ui/alarm-list.tsx index 419d915..e231b13 100644 --- a/src/entities/alarm/ui/alarm-list.tsx +++ b/src/entities/alarm/ui/alarm-list.tsx @@ -33,15 +33,11 @@ export const AlarmList = ({ const onIntersect: IntersectionObserverCallback = (entries: Array) => { entries.forEach((entry: IntersectionObserverEntry) => { if(entry.isIntersecting){ - console.log('Element is now intersecting with the root. [' + onActionIntersect + ']'); if(onActionIntersect && !!pageParam.cursor){ setOnActionIntersect(false); callList('page'); } } - else{ - console.log('Element is no longer intersecting with the root.'); - } }); }; diff --git a/src/entities/settlement/ui/list-wrap.tsx b/src/entities/settlement/ui/list-wrap.tsx index 5c07c9d..0139396 100644 --- a/src/entities/settlement/ui/list-wrap.tsx +++ b/src/entities/settlement/ui/list-wrap.tsx @@ -81,31 +81,24 @@ export const ListWrap = ({ const { mutateAsync: settlementsTransactionSummary } = useSettlementsTransactionSummaryMutation(); const { mutateAsync: downloadExcel } = useDownloadExcelMutation(); - const callList = (option?: { - type?: string - }) => { + const callList = (type?: string) => { setOnActionIntersect(false); if(periodType === SettlementPeriodType.SETTLEMENT_DATE){ - callSettlementList(option); + callSettlementList(type); } else if(periodType === SettlementPeriodType.TRANSACTION_DATE){ - callTransactionList(option); + callTransactionList(type); } }; const onIntersect: IntersectionObserverCallback = (entries: Array) => { entries.forEach((entry: IntersectionObserverEntry) => { if(entry.isIntersecting){ - console.log('Element is now intersecting with the root. [' + onActionIntersect + ']'); if(onActionIntersect && !!pageParam.cursor){ - callList({ - type: 'page' - }); + setOnActionIntersect(false); + callList('page'); } } - else{ - console.log('Element is no longer intersecting with the root.'); - } }); }; @@ -114,9 +107,7 @@ export const ListWrap = ({ onIntersect }); - const callSettlementList = (option?: { - type?: string - }) => { + const callSettlementList = (type?: string) => { let listSummaryParams: SettlementsHistorySummaryParams = { mid: mid, periodType: periodType, @@ -133,12 +124,12 @@ export const ListWrap = ({ } } }; - if(option?.type !== 'page' && listParams.page){ + if(type !== 'page' && listParams.page){ listParams.page.cursor = null; } settlementsHistory(listParams).then((rs: SettlementsHistoryResponse) => { - if(option?.type === 'page'){ + if(type === 'page'){ setSettlementDateListItems([ ...settlementDateListItems, ...rs.content @@ -177,9 +168,7 @@ export const ListWrap = ({ setOffsetAmount(rs.offsetAmount || 0); }); }; - const callTransactionList = (option?: { - type?: string - }) => { + const callTransactionList = (type?: string) => { let listSummaryParams: SettlementsTransactionSummaryParams = { mid: mid, periodType: periodType, @@ -200,11 +189,11 @@ export const ListWrap = ({ }; delete listParams.transactionIds; - if(option?.type !== 'page' && listParams.page){ + if(type !== 'page' && listParams.page){ listParams.page.cursor = null; } settlementsTransactionList(listParams).then((rs) => { - if(option?.type === 'page'){ + if(type === 'page'){ setTransactionDateListItems([ ...transactionDatelistItems, ...rs.content diff --git a/src/entities/vat-return/ui/list-wrap.tsx b/src/entities/vat-return/ui/list-wrap.tsx index 411c5f9..74620c3 100644 --- a/src/entities/vat-return/ui/list-wrap.tsx +++ b/src/entities/vat-return/ui/list-wrap.tsx @@ -38,15 +38,11 @@ export const ListWrap = () => { const onIntersect: IntersectionObserverCallback = (entries: Array) => { entries.forEach((entry: IntersectionObserverEntry) => { if(entry.isIntersecting){ - console.log('Element is now intersecting with the root. [' + onActionIntersect + ']'); if(onActionIntersect && !!pageParam.cursor){ setOnActionIntersect(false); callList('page'); } } - else{ - console.log('Element is no longer intersecting with the root.'); - } }); }; diff --git a/src/pages/additional-service/account-holder-auth/account-holder-auth-page.tsx b/src/pages/additional-service/account-holder-auth/account-holder-auth-page.tsx index 7f2224d..f1605cb 100644 --- a/src/pages/additional-service/account-holder-auth/account-holder-auth-page.tsx +++ b/src/pages/additional-service/account-holder-auth/account-holder-auth-page.tsx @@ -57,15 +57,11 @@ export const AccountHolderAuthPage = () => { const onIntersect: IntersectionObserverCallback = (entries: Array) => { entries.forEach((entry: IntersectionObserverEntry) => { if(entry.isIntersecting){ - console.log('Element is now intersecting with the root. [' + onActionIntersect + ']'); if(onActionIntersect && !!pageParam.cursor){ setOnActionIntersect(false); callList('page'); } } - else{ - console.log('Element is no longer intersecting with the root.'); - } }); }; diff --git a/src/pages/additional-service/account-holder-search/account-holder-search-page.tsx b/src/pages/additional-service/account-holder-search/account-holder-search-page.tsx index 32a95ea..d51f8b6 100644 --- a/src/pages/additional-service/account-holder-search/account-holder-search-page.tsx +++ b/src/pages/additional-service/account-holder-search/account-holder-search-page.tsx @@ -61,15 +61,11 @@ export const AccountHolderSearchPage = () => { const onIntersect: IntersectionObserverCallback = (entries: Array) => { entries.forEach((entry: IntersectionObserverEntry) => { if(entry.isIntersecting){ - console.log('Element is now intersecting with the root. [' + onActionIntersect + ']'); if(onActionIntersect && !!pageParam.cursor){ setOnActionIntersect(false); callList('page'); } } - else{ - console.log('Element is no longer intersecting with the root.'); - } }); }; diff --git a/src/pages/additional-service/alimtalk/list-page.tsx b/src/pages/additional-service/alimtalk/list-page.tsx index d69ccb5..b0e9415 100644 --- a/src/pages/additional-service/alimtalk/list-page.tsx +++ b/src/pages/additional-service/alimtalk/list-page.tsx @@ -63,15 +63,11 @@ export const AlimtalkListPage = () => { const onIntersect: IntersectionObserverCallback = (entries: Array) => { entries.forEach((entry: IntersectionObserverEntry) => { if(entry.isIntersecting){ - console.log('Element is now intersecting with the root. [' + onActionIntersect + ']'); if(onActionIntersect && !!pageParam.cursor){ setOnActionIntersect(false); callList('page'); } } - else{ - console.log('Element is no longer intersecting with the root.'); - } }); }; diff --git a/src/pages/additional-service/ars/list-page.tsx b/src/pages/additional-service/ars/list-page.tsx index fa1b148..3404522 100644 --- a/src/pages/additional-service/ars/list-page.tsx +++ b/src/pages/additional-service/ars/list-page.tsx @@ -54,15 +54,11 @@ export const ArsListPage = () => { const onIntersect: IntersectionObserverCallback = (entries: Array) => { entries.forEach((entry: IntersectionObserverEntry) => { if(entry.isIntersecting){ - console.log('Element is now intersecting with the root. [' + onActionIntersect + ']'); if(onActionIntersect && !!pageParam.cursor){ setOnActionIntersect(false); callList('page'); } } - else{ - console.log('Element is no longer intersecting with the root.'); - } }); }; diff --git a/src/pages/additional-service/face-auth/face-auth-page.tsx b/src/pages/additional-service/face-auth/face-auth-page.tsx index c1ea5bf..5e68175 100644 --- a/src/pages/additional-service/face-auth/face-auth-page.tsx +++ b/src/pages/additional-service/face-auth/face-auth-page.tsx @@ -60,15 +60,11 @@ export const FaceAuthPage = () => { const onIntersect: IntersectionObserverCallback = (entries: Array) => { entries.forEach((entry: IntersectionObserverEntry) => { if(entry.isIntersecting){ - console.log('Element is now intersecting with the root. [' + onActionIntersect + ']'); if(onActionIntersect && !!pageParam.cursor){ setOnActionIntersect(false); callList('page'); } } - else{ - console.log('Element is no longer intersecting with the root.'); - } }); }; diff --git a/src/pages/additional-service/key-in-payment/key-in-payment-page.tsx b/src/pages/additional-service/key-in-payment/key-in-payment-page.tsx index 11bffe9..6956ae3 100644 --- a/src/pages/additional-service/key-in-payment/key-in-payment-page.tsx +++ b/src/pages/additional-service/key-in-payment/key-in-payment-page.tsx @@ -59,15 +59,11 @@ export const KeyInPaymentPage = () => { const onIntersect: IntersectionObserverCallback = (entries: Array) => { entries.forEach((entry: IntersectionObserverEntry) => { if(entry.isIntersecting){ - console.log('Element is now intersecting with the root. [' + onActionIntersect + ']'); if(onActionIntersect && !!pageParam.cursor){ setOnActionIntersect(false); callList('page'); } } - else{ - console.log('Element is no longer intersecting with the root.'); - } }); }; diff --git a/src/pages/additional-service/payout/list-page.tsx b/src/pages/additional-service/payout/list-page.tsx index 109b43a..6052bd5 100644 --- a/src/pages/additional-service/payout/list-page.tsx +++ b/src/pages/additional-service/payout/list-page.tsx @@ -59,15 +59,11 @@ export const PayoutListPage = () => { const onIntersect: IntersectionObserverCallback = (entries: Array) => { entries.forEach((entry: IntersectionObserverEntry) => { if(entry.isIntersecting){ - console.log('Element is now intersecting with the root. [' + onActionIntersect + ']'); if(onActionIntersect && !!pageParam.cursor){ setOnActionIntersect(false); callList('page'); } } - else{ - console.log('Element is no longer intersecting with the root.'); - } }); }; diff --git a/src/pages/additional-service/sms-payment/sms-payment-page.tsx b/src/pages/additional-service/sms-payment/sms-payment-page.tsx index 567d97e..d4330cd 100644 --- a/src/pages/additional-service/sms-payment/sms-payment-page.tsx +++ b/src/pages/additional-service/sms-payment/sms-payment-page.tsx @@ -53,18 +53,15 @@ export const SmsPaymentPage = () => { const { mutateAsync: smsPaymentList } = useExtensionSmsListMutation(); const { mutateAsync: downloadExcel } = useExtensionSmsDownloadExcelMutation(); const { mutateAsync: detail } = useExtensionSmsDetailMutation(); + const onIntersect: IntersectionObserverCallback = (entries: Array) => { entries.forEach((entry: IntersectionObserverEntry) => { if(entry.isIntersecting){ - console.log('Element is now intersecting with the root. [' + onActionIntersect + ']'); if(onActionIntersect && !!pageParam.cursor){ setOnActionIntersect(false); callList('page'); } } - else{ - console.log('Element is no longer intersecting with the root.'); - } }); }; diff --git a/src/pages/support/faq/list-page.tsx b/src/pages/support/faq/list-page.tsx index 77b925f..096c65e 100644 --- a/src/pages/support/faq/list-page.tsx +++ b/src/pages/support/faq/list-page.tsx @@ -37,15 +37,11 @@ export const FaqListPage = () => { const onIntersect: IntersectionObserverCallback = (entries: Array) => { entries.forEach((entry: IntersectionObserverEntry) => { if(entry.isIntersecting){ - console.log('Element is now intersecting with the root. [' + onActionIntersect + ']'); if(onActionIntersect && !!pageParam.cursor){ setOnActionIntersect(false); callList('page'); } } - else{ - console.log('Element is no longer intersecting with the root.'); - } }); }; diff --git a/src/pages/support/notice/list-page.tsx b/src/pages/support/notice/list-page.tsx index 92b5ad2..7793a93 100644 --- a/src/pages/support/notice/list-page.tsx +++ b/src/pages/support/notice/list-page.tsx @@ -37,15 +37,11 @@ export const NoticeListPage = () => { const onIntersect: IntersectionObserverCallback = (entries: Array) => { entries.forEach((entry: IntersectionObserverEntry) => { if(entry.isIntersecting){ - console.log('Element is now intersecting with the root. [' + onActionIntersect + ']'); if(onActionIntersect && !!pageParam.cursor){ setOnActionIntersect(false); callList('page'); } } - else{ - console.log('Element is no longer intersecting with the root.'); - } }); }; diff --git a/src/pages/support/qna/list-page.tsx b/src/pages/support/qna/list-page.tsx index a7cac88..41803a6 100644 --- a/src/pages/support/qna/list-page.tsx +++ b/src/pages/support/qna/list-page.tsx @@ -41,7 +41,6 @@ export const QnaListPage = () => { const onIntersect: IntersectionObserverCallback = (entries: Array) => { entries.forEach((entry: IntersectionObserverEntry) => { if(entry.isIntersecting){ - console.log('Element is now intersecting with the root. [' + onActionIntersect + ']'); if(onActionIntersect && !!pageParam.cursor){ setOnActionIntersect(false); callList('page'); diff --git a/src/pages/transaction/all-transaction/list-page.tsx b/src/pages/transaction/all-transaction/list-page.tsx index e2c5219..c3cd865 100644 --- a/src/pages/transaction/all-transaction/list-page.tsx +++ b/src/pages/transaction/all-transaction/list-page.tsx @@ -77,15 +77,11 @@ export const AllTransactionListPage = () => { const onIntersect: IntersectionObserverCallback = (entries: Array) => { entries.forEach((entry: IntersectionObserverEntry) => { if(entry.isIntersecting){ - console.log('Element is now intersecting with the root. [' + onActionIntersect + ']'); if(onActionIntersect && !!pageParam.cursor){ setOnActionIntersect(false); callList('page'); } } - else{ - console.log('Element is no longer intersecting with the root.'); - } }); }; diff --git a/src/pages/transaction/billing/list-page.tsx b/src/pages/transaction/billing/list-page.tsx index a6289e5..259c332 100644 --- a/src/pages/transaction/billing/list-page.tsx +++ b/src/pages/transaction/billing/list-page.tsx @@ -66,15 +66,11 @@ export const BillingListPage = () => { const onIntersect: IntersectionObserverCallback = (entries: Array) => { entries.forEach((entry: IntersectionObserverEntry) => { if(entry.isIntersecting){ - console.log('Element is now intersecting with the root. [' + onActionIntersect + ']'); if(onActionIntersect && !!pageParam.cursor){ setOnActionIntersect(false); callList('page'); } } - else{ - console.log('Element is no longer intersecting with the root.'); - } }); }; diff --git a/src/pages/transaction/cash-receipt/list-page.tsx b/src/pages/transaction/cash-receipt/list-page.tsx index a176dc0..4843395 100644 --- a/src/pages/transaction/cash-receipt/list-page.tsx +++ b/src/pages/transaction/cash-receipt/list-page.tsx @@ -73,15 +73,11 @@ export const CashReceiptListPage = () => { const onIntersect: IntersectionObserverCallback = (entries: Array) => { entries.forEach((entry: IntersectionObserverEntry) => { if(entry.isIntersecting){ - console.log('Element is now intersecting with the root. [' + onActionIntersect + ']'); if(onActionIntersect && !!pageParam.cursor){ setOnActionIntersect(false); callList('page'); } } - else{ - console.log('Element is no longer intersecting with the root.'); - } }); }; diff --git a/src/pages/transaction/escrow/list-page.tsx b/src/pages/transaction/escrow/list-page.tsx index 36a3a62..294a293 100644 --- a/src/pages/transaction/escrow/list-page.tsx +++ b/src/pages/transaction/escrow/list-page.tsx @@ -65,15 +65,11 @@ export const EscrowListPage = () => { const onIntersect: IntersectionObserverCallback = (entries: Array) => { entries.forEach((entry: IntersectionObserverEntry) => { if(entry.isIntersecting){ - console.log('Element is now intersecting with the root. [' + onActionIntersect + ']'); if(onActionIntersect && !!pageParam.cursor){ setOnActionIntersect(false); callList('page'); } } - else{ - console.log('Element is no longer intersecting with the root.'); - } }); }; diff --git a/src/pages/vat-return/detail-page.tsx b/src/pages/vat-return/detail-page.tsx index b7ec850..7844826 100644 --- a/src/pages/vat-return/detail-page.tsx +++ b/src/pages/vat-return/detail-page.tsx @@ -58,13 +58,22 @@ export const DetailPage = () => { setDetail(rs); }); }; - const callVatReturnBreakdown = () => { + const callVatReturnBreakdown = async() => { let params: VatReturnBreakdownParams = { taxInvoiceNumber: taxInvoiceNumber, }; + try{ + let rs = await vatReturnBreakdown(params); + } + catch{ + console.log('error'); + return; + } + /* vatReturnBreakdown(params).then((rs: VatReturnBreakdownResponse) => { setBreakdown(rs.breakdown); }); + */ }; const onClickToOpenBottomSheet = () => {