- 현금영수증 목록,상세 다국어 누락된 항목에 대하여 언어화
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { useNavigate } from '@/shared/lib/hooks/use-navigate';
|
||||
import { BillingRequestStatus, CashReceiptTransactionType, EscrowDeliveryStatus, ListItemProps, TransactionCategory } from '../model/types';
|
||||
import moment from 'moment';
|
||||
import { getAllTransactionStatusCode, getPaymentMethodName } from '../model/contant';
|
||||
import { getAllTransactionStatusCode, getPaymentMethodName, getTransactionTypeName } from '../model/contant';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
export const ListItem = ({
|
||||
@@ -219,7 +219,7 @@ export const ListItem = ({
|
||||
>
|
||||
<span>{ getTime() }</span>
|
||||
<span className="separator">|</span>
|
||||
<span>{ transactionType }</span>
|
||||
<span>{ getTransactionTypeName(t)(transactionType) }</span>
|
||||
<span className="separator">|</span>
|
||||
<span>{ getPaymentMethodName(t, paymentMethod) }</span>
|
||||
<span className="separator">|</span>
|
||||
|
||||
@@ -2,6 +2,7 @@ import { useTranslation } from 'react-i18next';
|
||||
import { InfoSectionProps } from '../../model/types';
|
||||
import moment from 'moment';
|
||||
import { useEffect, useState } from 'react';
|
||||
import { getCashReceiptPurposeTypeName, getTransactionTypeName } from '../../model/contant';
|
||||
|
||||
export const IssueInfoSection = ({
|
||||
transactionCategory,
|
||||
@@ -40,7 +41,7 @@ export const IssueInfoSection = ({
|
||||
</li>
|
||||
<li className="kv-row">
|
||||
<span className="k">{t('transaction.fields.purpose')}</span>
|
||||
<span className="v">{ issueInfo?.purpose }</span>
|
||||
<span className="v">{ getCashReceiptPurposeTypeName(t)(issueInfo?.purpose) }</span>
|
||||
</li>
|
||||
<li className="kv-row">
|
||||
<span className="k">{t('transaction.fields.paymentMethod')}</span>
|
||||
@@ -56,7 +57,7 @@ export const IssueInfoSection = ({
|
||||
</li>
|
||||
<li className="kv-row">
|
||||
<span className="k">{t('transaction.fields.transactionType')}</span>
|
||||
<span className="v">{ issueInfo?.transactionType }</span>
|
||||
<span className="v">{ getTransactionTypeName(t)(issueInfo?.transactionType) }</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user