Refactor expense form and categories

-   Rename "지출 추가" to "지출 입력" in the add expense dialog.
-   Rename "교통비" to "교통" in categories and ensure all 4 icons are displayed on a single line.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-22 06:45:50 +00:00
parent c1a64ed711
commit 508eea9cde
5 changed files with 13 additions and 12 deletions

View File

@@ -6,29 +6,30 @@ import { Coffee, Home, Car, Package, Banknote } from 'lucide-react';
export const categoryIcons: Record<string, React.ReactNode> = {
: <Coffee size={18} />,
: <Home size={18} />,
: <Car size={18} />,
: <Car size={18} />,
: <Package size={18} />,
: <Banknote size={18} />,
};
// 지출 카테고리 목록 - 4개로 확장
export const EXPENSE_CATEGORIES = ['음식', '쇼핑', '교통', '기타'];
export const EXPENSE_CATEGORIES = ['음식', '쇼핑', '교통', '기타'];
// 카테고리 부가 설명 정의
export const CATEGORY_DESCRIPTIONS: Record<string, string> = {
: '(식비, 음료)',
: '',
: '(차량 유지비)',
: '(차량 유지비)',
: '(기타 지출)',
: '(식비, 음료)', // 이전 이름과의 호환성 유지
: '', // 이전 이름과의 호환성 유지
: '(차량 유지비)', // 이전 이름과의 호환성 유지
};
// 기본 카테고리 예산 설정
export const DEFAULT_CATEGORY_BUDGETS = {
음식: 400000,
쇼핑: 600000,
교통: 200000,
교통: 200000,
기타: 100000
};