diff --git a/src/app/history/page.tsx b/src/app/history/page.tsx new file mode 100644 index 0000000..f73cb80 --- /dev/null +++ b/src/app/history/page.tsx @@ -0,0 +1,75 @@ +import React from 'react'; + +interface Transaction { + id: string; + date: string; + amount: number; + type: 'deposit' | 'withdrawal' | 'transfer'; + status: 'completed' | 'pending' | 'failed'; +} + +const transactions: Transaction[] = [ + { + id: '1', + date: '2026-03-20', + amount: 1000, + type: 'deposit', + status: 'completed' + }, + { + id: '2', + date: '2026-03-19', + amount: 500, + type: 'withdrawal', + status: 'completed' + }, + { + id: '3', + date: '2026-03-18', + amount: 200, + type: 'transfer', + status: 'pending' + } +]; + +const HistoryPage: React.FC = () => { + return ( +
+

Transaction History

+
+ + + + + + + + + + + + {transactions.map((transaction) => ( + + + + + + + + ))} + +
IDDateAmountTypeStatus
{transaction.id}{transaction.date}${transaction.amount.toFixed(2)} + + {transaction.type} + + + + {transaction.status} + +
+
+
+ ); +}; + +export default HistoryPage; \ No newline at end of file diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index 2d673aa..9b1e5b3 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -25,6 +25,12 @@ export function Navbar() { > Create Group + + History +