From a5fd4b5299582e97a0f1ab07e9ce59088e15092c Mon Sep 17 00:00:00 2001 From: Jay Sheen Date: Tue, 4 Nov 2025 18:24:46 +0900 Subject: [PATCH] Apply t('home.money') localization to part-cancel-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 value 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../transaction/ui/section/part-cancel-info-section.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/entities/transaction/ui/section/part-cancel-info-section.tsx b/src/entities/transaction/ui/section/part-cancel-info-section.tsx index 075bd7b..d3c8dda 100644 --- a/src/entities/transaction/ui/section/part-cancel-info-section.tsx +++ b/src/entities/transaction/ui/section/part-cancel-info-section.tsx @@ -1,5 +1,4 @@ import moment from 'moment'; -import { NumericFormat } from 'react-number-format'; import { SectionTitleArrow } from '@/entities/common/ui/section-title-arrow'; import { InfoSectionKeys, InfoSectionProps } from '../../model/types'; import { SlideDown } from 'react-slidedown'; @@ -75,12 +74,7 @@ export const PartCancelInfoSection = ({ newPartCancelInfo[k] } { (checkValue(newPartCancelInfo[k]) && subItems[k]?.type === 'number') && - + t('home.money', { value: new Intl.NumberFormat('en-US').format(newPartCancelInfo[k] || 0) }) } { (checkValue(newPartCancelInfo[k]) && subItems[k]?.type === 'date') && moment(newPartCancelInfo[k]).format('YYYY.MM.DD')