거래내역 상세 페이지 관련

This commit is contained in:
focp212@naver.com
2025-10-23 17:56:05 +09:00
parent 7ce247a743
commit 40da87c5ad
9 changed files with 306 additions and 76 deletions

View File

@@ -1,7 +1,7 @@
import moment from 'moment';
import { NumericFormat } from 'react-number-format';
import { SectionTitleArrow } from '@/entities/common/ui/section-title-arrow';
import { InfoSectionKeys, InfoSectionProps } from '../../model/types';
import { InfoSectionKeys, InfoSectionProps, TransactionCategory } from '../../model/types';
import { SlideDown } from 'react-slidedown';
import 'react-slidedown/lib/slidedown.css';
@@ -106,13 +106,53 @@ export const SettlementInfoSection = ({
>
<SectionTitleArrow isOpen={ isOpen }></SectionTitleArrow>
</div>
<SlideDown className={'my-dropdown-slidedown'}>
{ !!isOpen &&
<ul className="kv-list">
{ subLi() }
</ul>
{ (transactionCategory === TransactionCategory.AllTransaction) &&
<SlideDown className={'my-dropdown-slidedown'}>
{ !!isOpen &&
<ul className="kv-list">
{ subLi() }
</ul>
}
</SlideDown>
}
{ (transactionCategory === TransactionCategory.Escrow) &&
<SlideDown className={'my-dropdown-slidedown'}>
{ !!isOpen &&
<ul className="kv-list">
<li className="kv-row">
<span className="k">·&nbsp;&nbsp;</span>
<span className="v">{ moment(settlementInfo?.approvalSettlementDate).format('YYYY.MM.DD') }</span>
</li>
<li className="kv-row">
<span className="k">·&nbsp;&nbsp;</span>
<span className="v">
<NumericFormat
value={ settlementInfo?.approvalSettlementAmount }
thousandSeparator
displayType="text"
suffix='원'
></NumericFormat>
</span>
</li>
<li className="kv-row">
<span className="k">·&nbsp;&nbsp;</span>
<span className="v">{ moment(settlementInfo?.cancelSettlementDate).format('YYYY.MM.DD') }</span>
</li>
<li className="kv-row">
<span className="k">·&nbsp;&nbsp;</span>
<span className="v">
<NumericFormat
value={ settlementInfo?.cancelSettlementAmount }
thousandSeparator
displayType="text"
suffix='원'
></NumericFormat>
</span>
</li>
</ul>
}
</SlideDown>
}
</SlideDown>
</div>
</>
)