Limit expense categories

Limit the number of expense categories to 식비, 생활비, 교통비.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-15 02:41:56 +00:00
parent b39ff34101
commit fff17903e4
4 changed files with 31 additions and 35 deletions

View File

@@ -1,3 +1,4 @@
import React, { useState } from 'react';
import NavBar from '@/components/NavBar';
import TransactionCard, { Transaction } from '@/components/TransactionCard';
@@ -7,41 +8,41 @@ import { Calendar, Search, ChevronLeft, ChevronRight } from 'lucide-react';
const Transactions = () => {
const [selectedMonth, setSelectedMonth] = useState('8월');
// Sample data - in a real app, this would come from a data source
// Sample data - updated to use only the three specified categories
const transactions: Transaction[] = [{
id: '1',
title: '식료품 구매',
amount: 25000,
date: '8월 25일, 12:30 PM',
category: 'shopping',
category: '식비',
type: 'expense'
}, {
id: '2',
title: '주유소',
amount: 50000,
date: '8월 24일, 3:45 PM',
category: 'transportation',
category: '교통비',
type: 'expense'
}, {
id: '4',
title: '아마존 프라임',
amount: 9900,
title: '생필품 구매',
amount: 35000,
date: '8월 18일, 6:00 AM',
category: 'entertainment',
category: '생활비',
type: 'expense'
}, {
id: '5',
title: '세',
title: '세',
amount: 650000,
date: '8월 15일, 10:00 AM',
category: 'housing',
category: '생활비',
type: 'expense'
}, {
id: '6',
title: '카페',
amount: 5500,
title: '식당',
amount: 15500,
date: '8월 12일, 2:15 PM',
category: 'food',
category: '식비',
type: 'expense'
}];