Apply t('home.count') localization to cash-receipt list page
- Replace NumericFormat with t('home.count') for transaction counts
- approvalCount (승인 건수)
- cancelCount (취소 건수)
- Remove NumericFormat import from cash-receipt list-page.tsx
- Remove duplicate count keys from locale files (keeping home.count)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import moment from 'moment';
|
||||
import { useEffect, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { NumericFormat } from 'react-number-format';
|
||||
import { IMAGE_ROOT } from '@/shared/constants/common';
|
||||
import { PATHS } from '@/shared/constants/paths';
|
||||
import { useNavigate } from '@/shared/lib/hooks/use-navigate';
|
||||
@@ -238,13 +237,7 @@ export const CashReceiptListPage = () => {
|
||||
{t('home.money', { value: new Intl.NumberFormat('en-US').format(approvalAmount || 0) })}
|
||||
</strong>
|
||||
<span className="count">
|
||||
(
|
||||
<NumericFormat
|
||||
value={ approvalCount }
|
||||
thousandSeparator
|
||||
displayType="text"
|
||||
suffix='건)'
|
||||
></NumericFormat>
|
||||
({t('home.count', { value: new Intl.NumberFormat('en-US').format(approvalCount || 0) })})
|
||||
</span>
|
||||
</div>
|
||||
<div className="row">
|
||||
@@ -253,14 +246,7 @@ export const CashReceiptListPage = () => {
|
||||
{t('home.money', { value: new Intl.NumberFormat('en-US').format(cancelAmount || 0) })}
|
||||
</strong>
|
||||
<span className="count">
|
||||
(
|
||||
<NumericFormat
|
||||
value={ cancelCount }
|
||||
allowNegative={ true }
|
||||
thousandSeparator
|
||||
displayType="text"
|
||||
suffix='건)'
|
||||
></NumericFormat>
|
||||
({t('home.count', { value: new Intl.NumberFormat('en-US').format(cancelCount || 0) })})
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user