로그 제거
This commit is contained in:
@@ -56,15 +56,11 @@ export const FundAccountResultListWrap = () => {
|
|||||||
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
||||||
entries.forEach((entry: IntersectionObserverEntry) => {
|
entries.forEach((entry: IntersectionObserverEntry) => {
|
||||||
if(entry.isIntersecting){
|
if(entry.isIntersecting){
|
||||||
console.log('Element is now intersecting with the root. [' + onActionIntersect + ']');
|
|
||||||
if(onActionIntersect && !!pageParam.cursor){
|
if(onActionIntersect && !!pageParam.cursor){
|
||||||
setOnActionIntersect(false);
|
setOnActionIntersect(false);
|
||||||
callList('page');
|
callList('page');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
|
||||||
console.log('Element is no longer intersecting with the root.');
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -55,15 +55,11 @@ export const FundAccountTransferListWrap = () => {
|
|||||||
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
||||||
entries.forEach((entry: IntersectionObserverEntry) => {
|
entries.forEach((entry: IntersectionObserverEntry) => {
|
||||||
if(entry.isIntersecting){
|
if(entry.isIntersecting){
|
||||||
console.log('Element is now intersecting with the root. [' + onActionIntersect + ']');
|
|
||||||
if(onActionIntersect && !!pageParam.cursor){
|
if(onActionIntersect && !!pageParam.cursor){
|
||||||
setOnActionIntersect(false);
|
setOnActionIntersect(false);
|
||||||
callList('page');
|
callList('page');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
|
||||||
console.log('Element is no longer intersecting with the root.');
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -43,15 +43,11 @@ export const LinkPaymentWaitSendWrap = () => {
|
|||||||
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
||||||
entries.forEach((entry: IntersectionObserverEntry) => {
|
entries.forEach((entry: IntersectionObserverEntry) => {
|
||||||
if(entry.isIntersecting){
|
if(entry.isIntersecting){
|
||||||
console.log('Element is now intersecting with the root. [' + onActionIntersect + ']');
|
|
||||||
if(onActionIntersect && !!pageParam.cursor){
|
if(onActionIntersect && !!pageParam.cursor){
|
||||||
setOnActionIntersect(false);
|
setOnActionIntersect(false);
|
||||||
callList('page');
|
callList('page');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
|
||||||
console.log('Element is no longer intersecting with the root.');
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -33,15 +33,11 @@ export const AlarmList = ({
|
|||||||
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
||||||
entries.forEach((entry: IntersectionObserverEntry) => {
|
entries.forEach((entry: IntersectionObserverEntry) => {
|
||||||
if(entry.isIntersecting){
|
if(entry.isIntersecting){
|
||||||
console.log('Element is now intersecting with the root. [' + onActionIntersect + ']');
|
|
||||||
if(onActionIntersect && !!pageParam.cursor){
|
if(onActionIntersect && !!pageParam.cursor){
|
||||||
setOnActionIntersect(false);
|
setOnActionIntersect(false);
|
||||||
callList('page');
|
callList('page');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
|
||||||
console.log('Element is no longer intersecting with the root.');
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -81,31 +81,24 @@ export const ListWrap = ({
|
|||||||
const { mutateAsync: settlementsTransactionSummary } = useSettlementsTransactionSummaryMutation();
|
const { mutateAsync: settlementsTransactionSummary } = useSettlementsTransactionSummaryMutation();
|
||||||
const { mutateAsync: downloadExcel } = useDownloadExcelMutation();
|
const { mutateAsync: downloadExcel } = useDownloadExcelMutation();
|
||||||
|
|
||||||
const callList = (option?: {
|
const callList = (type?: string) => {
|
||||||
type?: string
|
|
||||||
}) => {
|
|
||||||
setOnActionIntersect(false);
|
setOnActionIntersect(false);
|
||||||
if(periodType === SettlementPeriodType.SETTLEMENT_DATE){
|
if(periodType === SettlementPeriodType.SETTLEMENT_DATE){
|
||||||
callSettlementList(option);
|
callSettlementList(type);
|
||||||
}
|
}
|
||||||
else if(periodType === SettlementPeriodType.TRANSACTION_DATE){
|
else if(periodType === SettlementPeriodType.TRANSACTION_DATE){
|
||||||
callTransactionList(option);
|
callTransactionList(type);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
||||||
entries.forEach((entry: IntersectionObserverEntry) => {
|
entries.forEach((entry: IntersectionObserverEntry) => {
|
||||||
if(entry.isIntersecting){
|
if(entry.isIntersecting){
|
||||||
console.log('Element is now intersecting with the root. [' + onActionIntersect + ']');
|
|
||||||
if(onActionIntersect && !!pageParam.cursor){
|
if(onActionIntersect && !!pageParam.cursor){
|
||||||
callList({
|
setOnActionIntersect(false);
|
||||||
type: 'page'
|
callList('page');
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
|
||||||
console.log('Element is no longer intersecting with the root.');
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -114,9 +107,7 @@ export const ListWrap = ({
|
|||||||
onIntersect
|
onIntersect
|
||||||
});
|
});
|
||||||
|
|
||||||
const callSettlementList = (option?: {
|
const callSettlementList = (type?: string) => {
|
||||||
type?: string
|
|
||||||
}) => {
|
|
||||||
let listSummaryParams: SettlementsHistorySummaryParams = {
|
let listSummaryParams: SettlementsHistorySummaryParams = {
|
||||||
mid: mid,
|
mid: mid,
|
||||||
periodType: periodType,
|
periodType: periodType,
|
||||||
@@ -133,12 +124,12 @@ export const ListWrap = ({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if(option?.type !== 'page' && listParams.page){
|
if(type !== 'page' && listParams.page){
|
||||||
listParams.page.cursor = null;
|
listParams.page.cursor = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
settlementsHistory(listParams).then((rs: SettlementsHistoryResponse) => {
|
settlementsHistory(listParams).then((rs: SettlementsHistoryResponse) => {
|
||||||
if(option?.type === 'page'){
|
if(type === 'page'){
|
||||||
setSettlementDateListItems([
|
setSettlementDateListItems([
|
||||||
...settlementDateListItems,
|
...settlementDateListItems,
|
||||||
...rs.content
|
...rs.content
|
||||||
@@ -177,9 +168,7 @@ export const ListWrap = ({
|
|||||||
setOffsetAmount(rs.offsetAmount || 0);
|
setOffsetAmount(rs.offsetAmount || 0);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
const callTransactionList = (option?: {
|
const callTransactionList = (type?: string) => {
|
||||||
type?: string
|
|
||||||
}) => {
|
|
||||||
let listSummaryParams: SettlementsTransactionSummaryParams = {
|
let listSummaryParams: SettlementsTransactionSummaryParams = {
|
||||||
mid: mid,
|
mid: mid,
|
||||||
periodType: periodType,
|
periodType: periodType,
|
||||||
@@ -200,11 +189,11 @@ export const ListWrap = ({
|
|||||||
};
|
};
|
||||||
delete listParams.transactionIds;
|
delete listParams.transactionIds;
|
||||||
|
|
||||||
if(option?.type !== 'page' && listParams.page){
|
if(type !== 'page' && listParams.page){
|
||||||
listParams.page.cursor = null;
|
listParams.page.cursor = null;
|
||||||
}
|
}
|
||||||
settlementsTransactionList(listParams).then((rs) => {
|
settlementsTransactionList(listParams).then((rs) => {
|
||||||
if(option?.type === 'page'){
|
if(type === 'page'){
|
||||||
setTransactionDateListItems([
|
setTransactionDateListItems([
|
||||||
...transactionDatelistItems,
|
...transactionDatelistItems,
|
||||||
...rs.content
|
...rs.content
|
||||||
|
|||||||
@@ -38,15 +38,11 @@ export const ListWrap = () => {
|
|||||||
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
||||||
entries.forEach((entry: IntersectionObserverEntry) => {
|
entries.forEach((entry: IntersectionObserverEntry) => {
|
||||||
if(entry.isIntersecting){
|
if(entry.isIntersecting){
|
||||||
console.log('Element is now intersecting with the root. [' + onActionIntersect + ']');
|
|
||||||
if(onActionIntersect && !!pageParam.cursor){
|
if(onActionIntersect && !!pageParam.cursor){
|
||||||
setOnActionIntersect(false);
|
setOnActionIntersect(false);
|
||||||
callList('page');
|
callList('page');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
|
||||||
console.log('Element is no longer intersecting with the root.');
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -57,15 +57,11 @@ export const AccountHolderAuthPage = () => {
|
|||||||
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
||||||
entries.forEach((entry: IntersectionObserverEntry) => {
|
entries.forEach((entry: IntersectionObserverEntry) => {
|
||||||
if(entry.isIntersecting){
|
if(entry.isIntersecting){
|
||||||
console.log('Element is now intersecting with the root. [' + onActionIntersect + ']');
|
|
||||||
if(onActionIntersect && !!pageParam.cursor){
|
if(onActionIntersect && !!pageParam.cursor){
|
||||||
setOnActionIntersect(false);
|
setOnActionIntersect(false);
|
||||||
callList('page');
|
callList('page');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
|
||||||
console.log('Element is no longer intersecting with the root.');
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -61,15 +61,11 @@ export const AccountHolderSearchPage = () => {
|
|||||||
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
||||||
entries.forEach((entry: IntersectionObserverEntry) => {
|
entries.forEach((entry: IntersectionObserverEntry) => {
|
||||||
if(entry.isIntersecting){
|
if(entry.isIntersecting){
|
||||||
console.log('Element is now intersecting with the root. [' + onActionIntersect + ']');
|
|
||||||
if(onActionIntersect && !!pageParam.cursor){
|
if(onActionIntersect && !!pageParam.cursor){
|
||||||
setOnActionIntersect(false);
|
setOnActionIntersect(false);
|
||||||
callList('page');
|
callList('page');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
|
||||||
console.log('Element is no longer intersecting with the root.');
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -63,15 +63,11 @@ export const AlimtalkListPage = () => {
|
|||||||
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
||||||
entries.forEach((entry: IntersectionObserverEntry) => {
|
entries.forEach((entry: IntersectionObserverEntry) => {
|
||||||
if(entry.isIntersecting){
|
if(entry.isIntersecting){
|
||||||
console.log('Element is now intersecting with the root. [' + onActionIntersect + ']');
|
|
||||||
if(onActionIntersect && !!pageParam.cursor){
|
if(onActionIntersect && !!pageParam.cursor){
|
||||||
setOnActionIntersect(false);
|
setOnActionIntersect(false);
|
||||||
callList('page');
|
callList('page');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
|
||||||
console.log('Element is no longer intersecting with the root.');
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -54,15 +54,11 @@ export const ArsListPage = () => {
|
|||||||
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
||||||
entries.forEach((entry: IntersectionObserverEntry) => {
|
entries.forEach((entry: IntersectionObserverEntry) => {
|
||||||
if(entry.isIntersecting){
|
if(entry.isIntersecting){
|
||||||
console.log('Element is now intersecting with the root. [' + onActionIntersect + ']');
|
|
||||||
if(onActionIntersect && !!pageParam.cursor){
|
if(onActionIntersect && !!pageParam.cursor){
|
||||||
setOnActionIntersect(false);
|
setOnActionIntersect(false);
|
||||||
callList('page');
|
callList('page');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
|
||||||
console.log('Element is no longer intersecting with the root.');
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -60,15 +60,11 @@ export const FaceAuthPage = () => {
|
|||||||
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
||||||
entries.forEach((entry: IntersectionObserverEntry) => {
|
entries.forEach((entry: IntersectionObserverEntry) => {
|
||||||
if(entry.isIntersecting){
|
if(entry.isIntersecting){
|
||||||
console.log('Element is now intersecting with the root. [' + onActionIntersect + ']');
|
|
||||||
if(onActionIntersect && !!pageParam.cursor){
|
if(onActionIntersect && !!pageParam.cursor){
|
||||||
setOnActionIntersect(false);
|
setOnActionIntersect(false);
|
||||||
callList('page');
|
callList('page');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
|
||||||
console.log('Element is no longer intersecting with the root.');
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -59,15 +59,11 @@ export const KeyInPaymentPage = () => {
|
|||||||
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
||||||
entries.forEach((entry: IntersectionObserverEntry) => {
|
entries.forEach((entry: IntersectionObserverEntry) => {
|
||||||
if(entry.isIntersecting){
|
if(entry.isIntersecting){
|
||||||
console.log('Element is now intersecting with the root. [' + onActionIntersect + ']');
|
|
||||||
if(onActionIntersect && !!pageParam.cursor){
|
if(onActionIntersect && !!pageParam.cursor){
|
||||||
setOnActionIntersect(false);
|
setOnActionIntersect(false);
|
||||||
callList('page');
|
callList('page');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
|
||||||
console.log('Element is no longer intersecting with the root.');
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -59,15 +59,11 @@ export const PayoutListPage = () => {
|
|||||||
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
||||||
entries.forEach((entry: IntersectionObserverEntry) => {
|
entries.forEach((entry: IntersectionObserverEntry) => {
|
||||||
if(entry.isIntersecting){
|
if(entry.isIntersecting){
|
||||||
console.log('Element is now intersecting with the root. [' + onActionIntersect + ']');
|
|
||||||
if(onActionIntersect && !!pageParam.cursor){
|
if(onActionIntersect && !!pageParam.cursor){
|
||||||
setOnActionIntersect(false);
|
setOnActionIntersect(false);
|
||||||
callList('page');
|
callList('page');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
|
||||||
console.log('Element is no longer intersecting with the root.');
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -53,18 +53,15 @@ export const SmsPaymentPage = () => {
|
|||||||
const { mutateAsync: smsPaymentList } = useExtensionSmsListMutation();
|
const { mutateAsync: smsPaymentList } = useExtensionSmsListMutation();
|
||||||
const { mutateAsync: downloadExcel } = useExtensionSmsDownloadExcelMutation();
|
const { mutateAsync: downloadExcel } = useExtensionSmsDownloadExcelMutation();
|
||||||
const { mutateAsync: detail } = useExtensionSmsDetailMutation();
|
const { mutateAsync: detail } = useExtensionSmsDetailMutation();
|
||||||
|
|
||||||
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
||||||
entries.forEach((entry: IntersectionObserverEntry) => {
|
entries.forEach((entry: IntersectionObserverEntry) => {
|
||||||
if(entry.isIntersecting){
|
if(entry.isIntersecting){
|
||||||
console.log('Element is now intersecting with the root. [' + onActionIntersect + ']');
|
|
||||||
if(onActionIntersect && !!pageParam.cursor){
|
if(onActionIntersect && !!pageParam.cursor){
|
||||||
setOnActionIntersect(false);
|
setOnActionIntersect(false);
|
||||||
callList('page');
|
callList('page');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
|
||||||
console.log('Element is no longer intersecting with the root.');
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -37,15 +37,11 @@ export const FaqListPage = () => {
|
|||||||
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
||||||
entries.forEach((entry: IntersectionObserverEntry) => {
|
entries.forEach((entry: IntersectionObserverEntry) => {
|
||||||
if(entry.isIntersecting){
|
if(entry.isIntersecting){
|
||||||
console.log('Element is now intersecting with the root. [' + onActionIntersect + ']');
|
|
||||||
if(onActionIntersect && !!pageParam.cursor){
|
if(onActionIntersect && !!pageParam.cursor){
|
||||||
setOnActionIntersect(false);
|
setOnActionIntersect(false);
|
||||||
callList('page');
|
callList('page');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
|
||||||
console.log('Element is no longer intersecting with the root.');
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -37,15 +37,11 @@ export const NoticeListPage = () => {
|
|||||||
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
||||||
entries.forEach((entry: IntersectionObserverEntry) => {
|
entries.forEach((entry: IntersectionObserverEntry) => {
|
||||||
if(entry.isIntersecting){
|
if(entry.isIntersecting){
|
||||||
console.log('Element is now intersecting with the root. [' + onActionIntersect + ']');
|
|
||||||
if(onActionIntersect && !!pageParam.cursor){
|
if(onActionIntersect && !!pageParam.cursor){
|
||||||
setOnActionIntersect(false);
|
setOnActionIntersect(false);
|
||||||
callList('page');
|
callList('page');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
|
||||||
console.log('Element is no longer intersecting with the root.');
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -41,7 +41,6 @@ export const QnaListPage = () => {
|
|||||||
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
||||||
entries.forEach((entry: IntersectionObserverEntry) => {
|
entries.forEach((entry: IntersectionObserverEntry) => {
|
||||||
if(entry.isIntersecting){
|
if(entry.isIntersecting){
|
||||||
console.log('Element is now intersecting with the root. [' + onActionIntersect + ']');
|
|
||||||
if(onActionIntersect && !!pageParam.cursor){
|
if(onActionIntersect && !!pageParam.cursor){
|
||||||
setOnActionIntersect(false);
|
setOnActionIntersect(false);
|
||||||
callList('page');
|
callList('page');
|
||||||
|
|||||||
@@ -77,15 +77,11 @@ export const AllTransactionListPage = () => {
|
|||||||
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
||||||
entries.forEach((entry: IntersectionObserverEntry) => {
|
entries.forEach((entry: IntersectionObserverEntry) => {
|
||||||
if(entry.isIntersecting){
|
if(entry.isIntersecting){
|
||||||
console.log('Element is now intersecting with the root. [' + onActionIntersect + ']');
|
|
||||||
if(onActionIntersect && !!pageParam.cursor){
|
if(onActionIntersect && !!pageParam.cursor){
|
||||||
setOnActionIntersect(false);
|
setOnActionIntersect(false);
|
||||||
callList('page');
|
callList('page');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
|
||||||
console.log('Element is no longer intersecting with the root.');
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -66,15 +66,11 @@ export const BillingListPage = () => {
|
|||||||
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
||||||
entries.forEach((entry: IntersectionObserverEntry) => {
|
entries.forEach((entry: IntersectionObserverEntry) => {
|
||||||
if(entry.isIntersecting){
|
if(entry.isIntersecting){
|
||||||
console.log('Element is now intersecting with the root. [' + onActionIntersect + ']');
|
|
||||||
if(onActionIntersect && !!pageParam.cursor){
|
if(onActionIntersect && !!pageParam.cursor){
|
||||||
setOnActionIntersect(false);
|
setOnActionIntersect(false);
|
||||||
callList('page');
|
callList('page');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
|
||||||
console.log('Element is no longer intersecting with the root.');
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -73,15 +73,11 @@ export const CashReceiptListPage = () => {
|
|||||||
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
||||||
entries.forEach((entry: IntersectionObserverEntry) => {
|
entries.forEach((entry: IntersectionObserverEntry) => {
|
||||||
if(entry.isIntersecting){
|
if(entry.isIntersecting){
|
||||||
console.log('Element is now intersecting with the root. [' + onActionIntersect + ']');
|
|
||||||
if(onActionIntersect && !!pageParam.cursor){
|
if(onActionIntersect && !!pageParam.cursor){
|
||||||
setOnActionIntersect(false);
|
setOnActionIntersect(false);
|
||||||
callList('page');
|
callList('page');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
|
||||||
console.log('Element is no longer intersecting with the root.');
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -65,15 +65,11 @@ export const EscrowListPage = () => {
|
|||||||
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
||||||
entries.forEach((entry: IntersectionObserverEntry) => {
|
entries.forEach((entry: IntersectionObserverEntry) => {
|
||||||
if(entry.isIntersecting){
|
if(entry.isIntersecting){
|
||||||
console.log('Element is now intersecting with the root. [' + onActionIntersect + ']');
|
|
||||||
if(onActionIntersect && !!pageParam.cursor){
|
if(onActionIntersect && !!pageParam.cursor){
|
||||||
setOnActionIntersect(false);
|
setOnActionIntersect(false);
|
||||||
callList('page');
|
callList('page');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
|
||||||
console.log('Element is no longer intersecting with the root.');
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -58,13 +58,22 @@ export const DetailPage = () => {
|
|||||||
setDetail(rs);
|
setDetail(rs);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
const callVatReturnBreakdown = () => {
|
const callVatReturnBreakdown = async() => {
|
||||||
let params: VatReturnBreakdownParams = {
|
let params: VatReturnBreakdownParams = {
|
||||||
taxInvoiceNumber: taxInvoiceNumber,
|
taxInvoiceNumber: taxInvoiceNumber,
|
||||||
};
|
};
|
||||||
|
try{
|
||||||
|
let rs = await vatReturnBreakdown(params);
|
||||||
|
}
|
||||||
|
catch{
|
||||||
|
console.log('error');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
/*
|
||||||
vatReturnBreakdown(params).then((rs: VatReturnBreakdownResponse) => {
|
vatReturnBreakdown(params).then((rs: VatReturnBreakdownResponse) => {
|
||||||
setBreakdown(rs.breakdown);
|
setBreakdown(rs.breakdown);
|
||||||
});
|
});
|
||||||
|
*/
|
||||||
};
|
};
|
||||||
|
|
||||||
const onClickToOpenBottomSheet = () => {
|
const onClickToOpenBottomSheet = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user