settlement-detail localize
This commit is contained in:
@@ -39,7 +39,7 @@ export const SettlementDetail = ({
|
||||
settlementId,
|
||||
tid
|
||||
}: SettlementDetailProps) => {
|
||||
const { t, i18n } = useTranslation();
|
||||
const { t } = useTranslation();
|
||||
|
||||
const [amountInfo, setAmountInfo] = useState<AmountInfo>();
|
||||
const [settlementInfo, setSettlementInfo] = useState<SettlementInfo>();
|
||||
@@ -69,7 +69,7 @@ export const SettlementDetail = ({
|
||||
setSettlementDate(rs.settlementDate);
|
||||
}
|
||||
else{
|
||||
snackBar('데이터가 존재하지 않습니다.');
|
||||
snackBar(t('common.noData'));
|
||||
onClickToClose();
|
||||
}
|
||||
}).catch((e: any) => {
|
||||
@@ -144,13 +144,9 @@ export const SettlementDetail = ({
|
||||
<div className="txn-num-group">
|
||||
<div className="txn-amount">
|
||||
<div className="value">
|
||||
{i18n.language === 'en' && <span className="unit">{t('home.currencySymbol')}</span>}
|
||||
<NumericFormat
|
||||
value={ settlementAmount }
|
||||
thousandSeparator
|
||||
displayType="text"
|
||||
></NumericFormat>
|
||||
{i18n.language !== 'en' && <span className="unit">{t('home.currencyWon')}</span>}
|
||||
{t('home.money', {
|
||||
value: settlementAmount?.toLocaleString()
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
<div className="txn-date">{ moment(settlementDate).format('YYYY.MM.DD') }</div>
|
||||
@@ -160,13 +156,9 @@ export const SettlementDetail = ({
|
||||
<div className="txn-num-group">
|
||||
<div className="txn-amount">
|
||||
<div className="value">
|
||||
{i18n.language === 'en' && <span className="unit">{t('home.currencySymbol')}</span>}
|
||||
<NumericFormat
|
||||
value={ transactionAmount }
|
||||
thousandSeparator
|
||||
displayType="text"
|
||||
></NumericFormat>
|
||||
{i18n.language !== 'en' && <span className="unit">{t('home.currencyWon')}</span>}
|
||||
{t('home.money', {
|
||||
value: transactionAmount?.toLocaleString()
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
<div className="txn-date">{ merchantName }</div>
|
||||
|
||||
Reference in New Issue
Block a user