수정사항 반영
This commit is contained in:
@@ -39,7 +39,7 @@ export const ManagerSection = ({
|
||||
|
||||
useEffect(() => {
|
||||
if(!!openChild && openChild !== type){
|
||||
setIsOpen(false);
|
||||
setIsOpen(false);
|
||||
}
|
||||
}, [openChild]);
|
||||
|
||||
|
||||
@@ -133,15 +133,35 @@ export const AllTransactionDetail = ({
|
||||
}
|
||||
else if(infoSectionKey === InfoSectionKeys.Payment){
|
||||
setShowPaymentInfo(!showPaymentInfo);
|
||||
if(!showPaymentInfo){
|
||||
setShowTransactionInfo(false);
|
||||
setShowSettlementInfo(false);
|
||||
setShowPartCancelInfo(false);
|
||||
}
|
||||
}
|
||||
else if(infoSectionKey === InfoSectionKeys.Transaction){
|
||||
setShowTransactionInfo(!showTransactionInfo);
|
||||
if(!showTransactionInfo){
|
||||
setShowPaymentInfo(false);
|
||||
setShowSettlementInfo(false);
|
||||
setShowPartCancelInfo(false);
|
||||
}
|
||||
}
|
||||
else if(infoSectionKey === InfoSectionKeys.Settlement){
|
||||
setShowSettlementInfo(!showSettlementInfo);
|
||||
if(!showSettlementInfo){
|
||||
setShowPaymentInfo(false);
|
||||
setShowTransactionInfo(false);
|
||||
setShowPartCancelInfo(false);
|
||||
}
|
||||
}
|
||||
else if(infoSectionKey === InfoSectionKeys.PartCancel){
|
||||
setShowPartCancelInfo(!showPartCancelInfo);
|
||||
if(!showPartCancelInfo){
|
||||
setShowPaymentInfo(false);
|
||||
setShowTransactionInfo(false);
|
||||
setShowSettlementInfo(false);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -109,9 +109,15 @@ export const CashReceiptDetail = ({
|
||||
const onClickToOpenInfo = (infoSectionKey: InfoSectionKeys) => {
|
||||
if(infoSectionKey === InfoSectionKeys.Amount){
|
||||
setShowAmountInfo(!showAmountInfo);
|
||||
if(!showAmountInfo){
|
||||
setShowDetailInfo(false);
|
||||
}
|
||||
}
|
||||
else if(infoSectionKey === InfoSectionKeys.Detail){
|
||||
setShowDetailInfo(!showDetailInfo);
|
||||
if(!showDetailInfo){
|
||||
setShowAmountInfo(false);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -136,23 +136,55 @@ export const EscrowDetail = ({
|
||||
if(infoSectionKey === InfoSectionKeys.Amount){
|
||||
setShowAmountInfo(!showAmountInfo);
|
||||
}
|
||||
else if(infoSectionKey === InfoSectionKeys.Important){
|
||||
setShowImportantInfo(!showImportantInfo);
|
||||
}
|
||||
else if(infoSectionKey === InfoSectionKeys.Escrow){
|
||||
setShowEscroInfo(!showEscroInfo);
|
||||
if(!showEscroInfo){
|
||||
setShowImportantInfo(false);
|
||||
setShowPaymentInfo(false);
|
||||
setShowTransactionInfo(false);
|
||||
setShowSettlementInfo(false);
|
||||
setShowMerchantInfo(false);
|
||||
}
|
||||
}
|
||||
else if(infoSectionKey === InfoSectionKeys.Payment){
|
||||
setShowPaymentInfo(!showPaymentInfo);
|
||||
if(!showPaymentInfo){
|
||||
setShowImportantInfo(false);
|
||||
setShowEscroInfo(false);
|
||||
setShowTransactionInfo(false);
|
||||
setShowSettlementInfo(false);
|
||||
setShowMerchantInfo(false);
|
||||
}
|
||||
}
|
||||
else if(infoSectionKey === InfoSectionKeys.Transaction){
|
||||
setShowTransactionInfo(!showTransactionInfo);
|
||||
if(!showTransactionInfo){
|
||||
setShowImportantInfo(false);
|
||||
setShowEscroInfo(false);
|
||||
setShowPaymentInfo(false);
|
||||
setShowSettlementInfo(false);
|
||||
setShowMerchantInfo(false);
|
||||
}
|
||||
}
|
||||
else if(infoSectionKey === InfoSectionKeys.Settlement){
|
||||
setShowSettlementInfo(!showSettlementInfo);
|
||||
if(!showSettlementInfo){
|
||||
setShowImportantInfo(false);
|
||||
setShowEscroInfo(false);
|
||||
setShowPaymentInfo(false);
|
||||
setShowTransactionInfo(false);
|
||||
setShowMerchantInfo(false);
|
||||
}
|
||||
}
|
||||
else if(infoSectionKey === InfoSectionKeys.Merchant){
|
||||
setShowMerchantInfo(!showMerchantInfo);
|
||||
if(!showMerchantInfo){
|
||||
setShowImportantInfo(false);
|
||||
setShowEscroInfo(false);
|
||||
setShowPaymentInfo(false);
|
||||
setShowTransactionInfo(false);
|
||||
setShowSettlementInfo(false);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user