Change search input placeholder

Change the placeholder text of the search input in Transactions.tsx from "거래 검색..." to "지출 검색...".
This commit is contained in:
gpt-engineer-app[bot]
2025-03-15 02:37:41 +00:00
parent c07011e3c0
commit e983785a62

View File

@@ -1,4 +1,3 @@
import React, { useState } from 'react'; import React, { useState } from 'react';
import NavBar from '@/components/NavBar'; import NavBar from '@/components/NavBar';
import TransactionCard, { Transaction } from '@/components/TransactionCard'; import TransactionCard, { Transaction } from '@/components/TransactionCard';
@@ -45,7 +44,7 @@ const Transactions = () => {
category: 'food', category: 'food',
type: 'expense' type: 'expense'
}]; }];
// Filter only expense transactions // Filter only expense transactions
const expenseTransactions = transactions.filter(t => t.type === 'expense'); const expenseTransactions = transactions.filter(t => t.type === 'expense');
@@ -74,7 +73,7 @@ const Transactions = () => {
{/* Search */} {/* Search */}
<div className="neuro-pressed mb-5 flex items-center px-4 py-3 rounded-xl"> <div className="neuro-pressed mb-5 flex items-center px-4 py-3 rounded-xl">
<Search size={18} className="text-gray-500 mr-2" /> <Search size={18} className="text-gray-500 mr-2" />
<input type="text" placeholder="거래 검색..." className="bg-transparent flex-1 outline-none text-sm" /> <input type="text" placeholder="지출 검색..." className="bg-transparent flex-1 outline-none text-sm" />
</div> </div>
{/* Month Selector */} {/* Month Selector */}