Fix: Import MONTHS_KR from dateUtils

The `MONTHS_KR` export was not being correctly imported in `useFilterApplication.ts` and `index.ts`. This commit fixes the import statements to correctly reference the `MONTHS_KR` export from `dateUtils.ts`.
This commit is contained in:
gpt-engineer-app[bot]
2025-04-05 06:19:26 +00:00
parent 4b7f422acd
commit 1d3039c525
2 changed files with 12 additions and 5 deletions

View File

@@ -2,6 +2,14 @@
import { format, parse, addMonths, subMonths } from 'date-fns';
import { ko } from 'date-fns/locale';
/**
* 월 이름 배열 (한국어)
*/
export const MONTHS_KR = [
'1월', '2월', '3월', '4월', '5월', '6월',
'7월', '8월', '9월', '10월', '11월', '12월'
];
/**
* 월 형식 검증 함수 (YYYY-MM 형식)
*/

View File

@@ -1,10 +1,9 @@
// 월 이름 정의
export const MONTHS_KR = [
'1월', '2월', '3월', '4월', '5월', '6월',
'7월', '8월', '9월', '10월', '11월', '12월'
];
// 이 파일은 레거시 코드로 사용되지만 `MONTHS_KR`가 중복 정의되어 있으므로
// 새로운 구현에서는 src/hooks/transactions/dateUtils.ts에서 가져와 사용합니다.
export { MONTHS_KR } from '@/hooks/transactions/dateUtils';
// 아래 함수들은 하위 호환성을 위해 유지합니다
// 현재 월 가져오기
export const getCurrentMonth = () => {
const now = new Date();