통화 표기 방식 개선: t('home.money', { value }) 패턴으로 통일
This commit is contained in:
@@ -69,49 +69,25 @@ export const VatReturnListDetailBottomSheet = ({
|
||||
<div className="row">
|
||||
<div className="label desc dot">{t('vatReturn.transactionAmount')} :</div>
|
||||
<div className="value">
|
||||
<NumericFormat
|
||||
value={ transactionAmount }
|
||||
thousandSeparator
|
||||
displayType="text"
|
||||
prefix={i18n.language === 'en' ? t('home.currencySymbol') : ''}
|
||||
suffix={i18n.language === 'en' ? '' : t('home.currencyWon')}
|
||||
></NumericFormat>
|
||||
{t('home.money', { value: <NumericFormat value={ transactionAmount } thousandSeparator displayType="text" /> })}
|
||||
</div>
|
||||
</div>
|
||||
<div className="row">
|
||||
<div className="label desc dot">{t('vatReturn.supplyAmount')} :</div>
|
||||
<div className="value">
|
||||
<NumericFormat
|
||||
value={ supplyAmount }
|
||||
thousandSeparator
|
||||
displayType="text"
|
||||
prefix={i18n.language === 'en' ? t('home.currencySymbol') : ''}
|
||||
suffix={i18n.language === 'en' ? '' : t('home.currencyWon')}
|
||||
></NumericFormat>
|
||||
{t('home.money', { value: <NumericFormat value={ supplyAmount } thousandSeparator displayType="text" /> })}
|
||||
</div>
|
||||
</div>
|
||||
<div className="row">
|
||||
<div className="label desc dot">{t('vatReturn.vat')} :</div>
|
||||
<div className="value">
|
||||
<NumericFormat
|
||||
value={ vatAmount }
|
||||
thousandSeparator
|
||||
displayType="text"
|
||||
prefix={i18n.language === 'en' ? t('home.currencySymbol') : ''}
|
||||
suffix={i18n.language === 'en' ? '' : t('home.currencyWon')}
|
||||
></NumericFormat>
|
||||
{t('home.money', { value: <NumericFormat value={ vatAmount } thousandSeparator displayType="text" /> })}
|
||||
</div>
|
||||
</div>
|
||||
<div className="row">
|
||||
<div className="label desc dot">{t('vatReturn.totalAmount')} :</div>
|
||||
<div className="value">
|
||||
<NumericFormat
|
||||
value={ totalAmount }
|
||||
thousandSeparator
|
||||
displayType="text"
|
||||
prefix={i18n.language === 'en' ? t('home.currencySymbol') : ''}
|
||||
suffix={i18n.language === 'en' ? '' : t('home.currencyWon')}
|
||||
></NumericFormat>
|
||||
{t('home.money', { value: <NumericFormat value={ totalAmount } thousandSeparator displayType="text" /> })}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -129,13 +105,7 @@ export const VatReturnListDetailBottomSheet = ({
|
||||
<span className="date">{ value.transactionDate? moment(value.transactionDate).format('YYYY-MM-DD'): '' }</span>
|
||||
<div className="amount">
|
||||
<span className="text">
|
||||
<NumericFormat
|
||||
value={ value.totalAmount }
|
||||
thousandSeparator
|
||||
displayType="text"
|
||||
prefix={i18n.language === 'en' ? t('home.currencySymbol') : ''}
|
||||
suffix={i18n.language === 'en' ? '' : t('home.currencyWon')}
|
||||
></NumericFormat>
|
||||
{t('home.money', { value: <NumericFormat value={ value.totalAmount } thousandSeparator displayType="text" /> })}
|
||||
</span>
|
||||
<img
|
||||
className="arrow down"
|
||||
@@ -154,31 +124,13 @@ export const VatReturnListDetailBottomSheet = ({
|
||||
</div>
|
||||
<div className="values">
|
||||
<span>
|
||||
<NumericFormat
|
||||
value={ value.transactionAmount }
|
||||
thousandSeparator
|
||||
displayType="text"
|
||||
prefix={i18n.language === 'en' ? t('home.currencySymbol') : ''}
|
||||
suffix={i18n.language === 'en' ? '' : t('home.currencyWon')}
|
||||
></NumericFormat>
|
||||
{t('home.money', { value: <NumericFormat value={ value.transactionAmount } thousandSeparator displayType="text" /> })}
|
||||
</span>
|
||||
<span>
|
||||
<NumericFormat
|
||||
value={ value.supplyAmount }
|
||||
thousandSeparator
|
||||
displayType="text"
|
||||
prefix={i18n.language === 'en' ? t('home.currencySymbol') : ''}
|
||||
suffix={i18n.language === 'en' ? '' : t('home.currencyWon')}
|
||||
></NumericFormat>
|
||||
{t('home.money', { value: <NumericFormat value={ value.supplyAmount } thousandSeparator displayType="text" /> })}
|
||||
</span>
|
||||
<span>
|
||||
<NumericFormat
|
||||
value={ value.vatAmount }
|
||||
thousandSeparator
|
||||
displayType="text"
|
||||
prefix={i18n.language === 'en' ? t('home.currencySymbol') : ''}
|
||||
suffix={i18n.language === 'en' ? '' : t('home.currencyWon')}
|
||||
></NumericFormat>
|
||||
{t('home.money', { value: <NumericFormat value={ value.vatAmount } thousandSeparator displayType="text" /> })}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -42,13 +42,7 @@ export const ListItem = ({
|
||||
</div>
|
||||
</div>
|
||||
<div className="transaction-amount">
|
||||
<NumericFormat
|
||||
value={ amount }
|
||||
thousandSeparator
|
||||
displayType="text"
|
||||
prefix={i18n.language === 'en' ? t('home.currencySymbol') : ''}
|
||||
suffix={i18n.language === 'en' ? '' : t('home.currencyWon')}
|
||||
></NumericFormat>
|
||||
{t('home.money', { value: <NumericFormat value={ amount } thousandSeparator displayType="text" /> })}
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
|
||||
@@ -37,13 +37,7 @@ export const AmountSection = ({
|
||||
<div className="txn-num-group">
|
||||
<div className="txn-amount">
|
||||
<div className="value">
|
||||
{i18n.language === 'en' && <span>{t('home.currencySymbol')}</span>}
|
||||
<NumericFormat
|
||||
value={ detail.totalAmount }
|
||||
thousandSeparator
|
||||
displayType="text"
|
||||
></NumericFormat>
|
||||
<span className="unit">{i18n.language === 'en' ? '' : t('home.currencyWon')}</span>
|
||||
{t('home.money', { value: <NumericFormat value={ detail.totalAmount } thousandSeparator displayType="text" /> })}
|
||||
</div>
|
||||
<button
|
||||
className="chip-btn"
|
||||
@@ -60,25 +54,13 @@ export const AmountSection = ({
|
||||
<li className="amount-item">
|
||||
<span className="label">· {t('vatReturn.supplyAmount')}</span>
|
||||
<span className="value">
|
||||
<NumericFormat
|
||||
value={ detail.supplyAmount }
|
||||
thousandSeparator
|
||||
displayType="text"
|
||||
prefix={i18n.language === 'en' ? t('home.currencySymbol') : ''}
|
||||
suffix={i18n.language === 'en' ? '' : t('home.currencyWon')}
|
||||
></NumericFormat>
|
||||
{t('home.money', { value: <NumericFormat value={ detail.supplyAmount } thousandSeparator displayType="text" /> })}
|
||||
</span>
|
||||
</li>
|
||||
<li className="amount-item">
|
||||
<span className="label">· {t('vatReturn.vat')}</span>
|
||||
<span className="value">
|
||||
<NumericFormat
|
||||
value={ detail.vatAmount }
|
||||
thousandSeparator
|
||||
displayType="text"
|
||||
prefix={i18n.language === 'en' ? t('home.currencySymbol') : ''}
|
||||
suffix={i18n.language === 'en' ? '' : t('home.currencyWon')}
|
||||
></NumericFormat>
|
||||
{t('home.money', { value: <NumericFormat value={ detail.vatAmount } thousandSeparator displayType="text" /> })}
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user