Fix: Import BudgetData from types.ts
The BudgetData type was not being correctly imported from the BudgetContext. This commit updates the import statements in BudgetProgressCard.tsx and HomeContent.tsx to import BudgetData from types.ts, resolving the TypeScript errors.
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { useBudgetState } from './useBudgetState';
|
import { useBudgetState } from './useBudgetState';
|
||||||
import { BudgetContext, BudgetContextType } from './useBudget';
|
import { BudgetContext, BudgetContextType } from './useBudget';
|
||||||
import { BudgetPeriod, Transaction } from './types';
|
import { BudgetPeriod, Transaction, BudgetData } from './types';
|
||||||
|
|
||||||
// 컨텍스트 프로바이더 컴포넌트
|
// 컨텍스트 프로바이더 컴포넌트
|
||||||
export const BudgetProvider: React.FC<{ children: React.ReactNode }> = ({ children }) => {
|
export const BudgetProvider: React.FC<{ children: React.ReactNode }> = ({ children }) => {
|
||||||
@@ -20,4 +20,4 @@ export { useBudget } from './useBudget';
|
|||||||
export type { BudgetContextType } from './useBudget';
|
export type { BudgetContextType } from './useBudget';
|
||||||
|
|
||||||
// types.ts에서 타입들을 export type으로 내보냅니다
|
// types.ts에서 타입들을 export type으로 내보냅니다
|
||||||
export type { BudgetPeriod, Transaction } from './types';
|
export type { BudgetPeriod, Transaction, BudgetData } from './types';
|
||||||
|
|||||||
Reference in New Issue
Block a user