로그 제거

This commit is contained in:
focp212@naver.com
2025-10-28 11:08:50 +09:00
parent 5bbef971e1
commit feaaac73f7
22 changed files with 22 additions and 100 deletions

View File

@@ -56,15 +56,11 @@ export const FundAccountResultListWrap = () => {
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
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.');
}
});
};

View File

@@ -55,15 +55,11 @@ export const FundAccountTransferListWrap = () => {
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
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.');
}
});
};

View File

@@ -43,15 +43,11 @@ export const LinkPaymentWaitSendWrap = () => {
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
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.');
}
});
};

View File

@@ -33,15 +33,11 @@ export const AlarmList = ({
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
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.');
}
});
};

View File

@@ -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<IntersectionObserverEntry>) => {
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

View File

@@ -38,15 +38,11 @@ export const ListWrap = () => {
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
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.');
}
});
};

View File

@@ -57,15 +57,11 @@ export const AccountHolderAuthPage = () => {
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
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.');
}
});
};

View File

@@ -61,15 +61,11 @@ export const AccountHolderSearchPage = () => {
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
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.');
}
});
};

View File

@@ -63,15 +63,11 @@ export const AlimtalkListPage = () => {
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
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.');
}
});
};

View File

@@ -54,15 +54,11 @@ export const ArsListPage = () => {
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
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.');
}
});
};

View File

@@ -60,15 +60,11 @@ export const FaceAuthPage = () => {
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
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.');
}
});
};

View File

@@ -59,15 +59,11 @@ export const KeyInPaymentPage = () => {
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
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.');
}
});
};

View File

@@ -59,15 +59,11 @@ export const PayoutListPage = () => {
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
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.');
}
});
};

View File

@@ -53,18 +53,15 @@ export const SmsPaymentPage = () => {
const { mutateAsync: smsPaymentList } = useExtensionSmsListMutation();
const { mutateAsync: downloadExcel } = useExtensionSmsDownloadExcelMutation();
const { mutateAsync: detail } = useExtensionSmsDetailMutation();
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
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.');
}
});
};

View File

@@ -37,15 +37,11 @@ export const FaqListPage = () => {
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
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.');
}
});
};

View File

@@ -37,15 +37,11 @@ export const NoticeListPage = () => {
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
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.');
}
});
};

View File

@@ -41,7 +41,6 @@ export const QnaListPage = () => {
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
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');

View File

@@ -77,15 +77,11 @@ export const AllTransactionListPage = () => {
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
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.');
}
});
};

View File

@@ -66,15 +66,11 @@ export const BillingListPage = () => {
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
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.');
}
});
};

View File

@@ -73,15 +73,11 @@ export const CashReceiptListPage = () => {
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
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.');
}
});
};

View File

@@ -65,15 +65,11 @@ export const EscrowListPage = () => {
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
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.');
}
});
};

View File

@@ -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 = () => {