수정사항 반영

This commit is contained in:
focp212@naver.com
2025-11-20 15:59:47 +09:00
parent 21089bb779
commit 548a248a69
4 changed files with 62 additions and 4 deletions

View File

@@ -39,7 +39,7 @@ export const ManagerSection = ({
useEffect(() => { useEffect(() => {
if(!!openChild && openChild !== type){ if(!!openChild && openChild !== type){
setIsOpen(false); setIsOpen(false);
} }
}, [openChild]); }, [openChild]);

View File

@@ -133,15 +133,35 @@ export const AllTransactionDetail = ({
} }
else if(infoSectionKey === InfoSectionKeys.Payment){ else if(infoSectionKey === InfoSectionKeys.Payment){
setShowPaymentInfo(!showPaymentInfo); setShowPaymentInfo(!showPaymentInfo);
if(!showPaymentInfo){
setShowTransactionInfo(false);
setShowSettlementInfo(false);
setShowPartCancelInfo(false);
}
} }
else if(infoSectionKey === InfoSectionKeys.Transaction){ else if(infoSectionKey === InfoSectionKeys.Transaction){
setShowTransactionInfo(!showTransactionInfo); setShowTransactionInfo(!showTransactionInfo);
if(!showTransactionInfo){
setShowPaymentInfo(false);
setShowSettlementInfo(false);
setShowPartCancelInfo(false);
}
} }
else if(infoSectionKey === InfoSectionKeys.Settlement){ else if(infoSectionKey === InfoSectionKeys.Settlement){
setShowSettlementInfo(!showSettlementInfo); setShowSettlementInfo(!showSettlementInfo);
if(!showSettlementInfo){
setShowPaymentInfo(false);
setShowTransactionInfo(false);
setShowPartCancelInfo(false);
}
} }
else if(infoSectionKey === InfoSectionKeys.PartCancel){ else if(infoSectionKey === InfoSectionKeys.PartCancel){
setShowPartCancelInfo(!showPartCancelInfo); setShowPartCancelInfo(!showPartCancelInfo);
if(!showPartCancelInfo){
setShowPaymentInfo(false);
setShowTransactionInfo(false);
setShowSettlementInfo(false);
}
} }
}; };

View File

@@ -109,9 +109,15 @@ export const CashReceiptDetail = ({
const onClickToOpenInfo = (infoSectionKey: InfoSectionKeys) => { const onClickToOpenInfo = (infoSectionKey: InfoSectionKeys) => {
if(infoSectionKey === InfoSectionKeys.Amount){ if(infoSectionKey === InfoSectionKeys.Amount){
setShowAmountInfo(!showAmountInfo); setShowAmountInfo(!showAmountInfo);
if(!showAmountInfo){
setShowDetailInfo(false);
}
} }
else if(infoSectionKey === InfoSectionKeys.Detail){ else if(infoSectionKey === InfoSectionKeys.Detail){
setShowDetailInfo(!showDetailInfo); setShowDetailInfo(!showDetailInfo);
if(!showDetailInfo){
setShowAmountInfo(false);
}
} }
}; };

View File

@@ -136,23 +136,55 @@ export const EscrowDetail = ({
if(infoSectionKey === InfoSectionKeys.Amount){ if(infoSectionKey === InfoSectionKeys.Amount){
setShowAmountInfo(!showAmountInfo); setShowAmountInfo(!showAmountInfo);
} }
else if(infoSectionKey === InfoSectionKeys.Important){
setShowImportantInfo(!showImportantInfo);
}
else if(infoSectionKey === InfoSectionKeys.Escrow){ else if(infoSectionKey === InfoSectionKeys.Escrow){
setShowEscroInfo(!showEscroInfo); setShowEscroInfo(!showEscroInfo);
if(!showEscroInfo){
setShowImportantInfo(false);
setShowPaymentInfo(false);
setShowTransactionInfo(false);
setShowSettlementInfo(false);
setShowMerchantInfo(false);
}
} }
else if(infoSectionKey === InfoSectionKeys.Payment){ else if(infoSectionKey === InfoSectionKeys.Payment){
setShowPaymentInfo(!showPaymentInfo); setShowPaymentInfo(!showPaymentInfo);
if(!showPaymentInfo){
setShowImportantInfo(false);
setShowEscroInfo(false);
setShowTransactionInfo(false);
setShowSettlementInfo(false);
setShowMerchantInfo(false);
}
} }
else if(infoSectionKey === InfoSectionKeys.Transaction){ else if(infoSectionKey === InfoSectionKeys.Transaction){
setShowTransactionInfo(!showTransactionInfo); setShowTransactionInfo(!showTransactionInfo);
if(!showTransactionInfo){
setShowImportantInfo(false);
setShowEscroInfo(false);
setShowPaymentInfo(false);
setShowSettlementInfo(false);
setShowMerchantInfo(false);
}
} }
else if(infoSectionKey === InfoSectionKeys.Settlement){ else if(infoSectionKey === InfoSectionKeys.Settlement){
setShowSettlementInfo(!showSettlementInfo); setShowSettlementInfo(!showSettlementInfo);
if(!showSettlementInfo){
setShowImportantInfo(false);
setShowEscroInfo(false);
setShowPaymentInfo(false);
setShowTransactionInfo(false);
setShowMerchantInfo(false);
}
} }
else if(infoSectionKey === InfoSectionKeys.Merchant){ else if(infoSectionKey === InfoSectionKeys.Merchant){
setShowMerchantInfo(!showMerchantInfo); setShowMerchantInfo(!showMerchantInfo);
if(!showMerchantInfo){
setShowImportantInfo(false);
setShowEscroInfo(false);
setShowPaymentInfo(false);
setShowTransactionInfo(false);
setShowSettlementInfo(false);
}
} }
}; };