Fix: Ensure BudgetProvider usage

The `useBudget` hook was being called outside of the `BudgetProvider` context in the `Index` component. This commit ensures that the `Index` component and its children are wrapped with the `BudgetProvider` in `App.tsx` to resolve the error.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-22 07:14:12 +00:00
parent 81afd624a4
commit 2eff95908e
4 changed files with 5 additions and 5 deletions

View File

@@ -20,4 +20,5 @@ export { useBudget } from './useBudget';
export type { BudgetContextType } from './useBudget';
// types.ts에서 타입들을 export
export { BudgetPeriod, Transaction } from './types';
export { BudgetPeriod } from './types';
export type { Transaction } from './types';

View File

@@ -3,8 +3,7 @@ export * from './BudgetContext';
export * from './budgetUtils';
export * from './storageUtils';
// types.ts에서 BudgetPeriod와 다른 타입들을 내보내지만,
// BudgetContextType은 이미 BudgetContext에서 내보내고 있으므로 제외
// types.ts에서 타입들을 내보냅니다
export type {
BudgetPeriod,
BudgetPeriodData,