From 285f23ab1a06f88d09c486cf4ad5e62d61a745a2 Mon Sep 17 00:00:00 2001 From: Jay Sheen Date: Tue, 4 Nov 2025 18:30:59 +0900 Subject: [PATCH] Apply t('home.money') localization to important-info-section MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove NumericFormat import dependency - Replace NumericFormat with t('home.money') pattern for amount display - Remove hardcoded currency unit (원) - now included in locale - Add null safety with || 0 for amount values - Applied to dynamic important info fields (newImportantInfo) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../transaction/ui/section/important-info-section.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/entities/transaction/ui/section/important-info-section.tsx b/src/entities/transaction/ui/section/important-info-section.tsx index 64c8c9b..c69d5fe 100644 --- a/src/entities/transaction/ui/section/important-info-section.tsx +++ b/src/entities/transaction/ui/section/important-info-section.tsx @@ -1,6 +1,5 @@ import moment from 'moment'; import { useTranslation } from 'react-i18next'; -import { NumericFormat } from 'react-number-format'; import { InfoSectionProps, TransactionCategory } from '../../model/types'; import { useStore } from '@/shared/model/store'; import { getAllTransactionStatusCode } from '../../model/contant'; @@ -126,12 +125,7 @@ export const ImportantInfoSection = ({ newImportantInfo[k] } { (checkValue(newImportantInfo[k]) && subItems[k]?.type === 'number') && - + t('home.money', { value: new Intl.NumberFormat('en-US').format(newImportantInfo[k] || 0) }) } { (checkValue(newImportantInfo[k]) && subItems[k]?.type === 'date') && moment(newImportantInfo[k]).format('YYYY.MM.DD')