diff --git a/src/components/TransactionCard.tsx b/src/components/TransactionCard.tsx index 968fda5..7d08b43 100644 --- a/src/components/TransactionCard.tsx +++ b/src/components/TransactionCard.tsx @@ -1,4 +1,3 @@ - import React, { useState } from 'react'; import { cn } from '@/lib/utils'; import TransactionEditDialog from './TransactionEditDialog'; @@ -14,6 +13,8 @@ export type Transaction = { category: string; type: 'expense' | 'income'; notes?: string; // notes 필드를 옵셔널로 추가 + localTimestamp?: string; // 로컬 수정 타임스탬프 추가 + serverTimestamp?: string; // 서버 타임스탬프 추가 }; interface TransactionCardProps { diff --git a/src/contexts/budget/types.ts b/src/contexts/budget/types.ts index 420a919..1a750b4 100644 --- a/src/contexts/budget/types.ts +++ b/src/contexts/budget/types.ts @@ -40,5 +40,7 @@ export interface Transaction { date: string; category: string; type: 'income' | 'expense'; - notes?: string; // notes 필드를 옵셔널로 추가 + notes?: string; + localTimestamp?: string; // 로컬 수정 타임스탬프 추가 + serverTimestamp?: string; // 서버 타임스탬프 추가 }