Apply t('home.money') localization to part-cancel-info-section

- 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 <noreply@anthropic.com>
This commit is contained in:
Jay Sheen
2025-11-04 18:24:46 +09:00
parent 89aa320e26
commit a5fd4b5299

View File

@@ -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') &&
<NumericFormat
value={ newPartCancelInfo[k] }
thousandSeparator
displayType="text"
suffix='원'
></NumericFormat>
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')