Refactor: Split Index page

Refactor Index.tsx into smaller, more manageable components.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-15 02:23:57 +00:00
parent 19ecbd2728
commit ae391e606b
6 changed files with 241 additions and 151 deletions

View File

@@ -0,0 +1,26 @@
import React from 'react';
import TransactionCard, { Transaction } from '@/components/TransactionCard';
interface RecentTransactionsSectionProps {
transactions: Transaction[];
}
const RecentTransactionsSection: React.FC<RecentTransactionsSectionProps> = ({ transactions }) => {
return (
<>
<h2 className="text-lg font-semibold mb-3 mt-8"> </h2>
<div className="grid gap-3 mb-6">
{transactions.map(transaction => (
<TransactionCard key={transaction.id} transaction={transaction} />
))}
</div>
<div className="flex justify-center mb-6">
<button className="text-neuro-income font-medium"> </button>
</div>
</>
);
};
export default RecentTransactionsSection;