Refactor category budget setting

The category budget setting is now based on the monthly budget amount, which is then divided into daily and weekly budgets.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-18 02:22:58 +00:00
parent 0be5154e02
commit 42c9355e76
5 changed files with 78 additions and 115 deletions

View File

@@ -65,7 +65,7 @@ export const loadBudgetFromStorage = (): number => {
return 0;
};
// 모든 데이터 완전히 초기화
// 모든 데이터 완전히 초기화 - 성능 최적화
export const resetAllStorageData = (): void => {
console.log('완전 초기화 시작 - resetAllStorageData');
@@ -80,7 +80,7 @@ export const resetAllStorageData = (): void => {
// 모든 Storage 키 목록 (로그인 관련 항목 제외)
const keysToRemove = [
'transactions',
'transactions',
'budget',
'monthlyExpenses',
'budgetData',
@@ -100,7 +100,7 @@ export const resetAllStorageData = (): void => {
'budgetHistory',
'transactionHistory',
'lastSync',
'syncEnabled', // 동기화 설정도 초기화
'syncEnabled'
];
// 키 동시에 삭제 (성능 최적화)