Spaces:
Build error
Build error
Download components/TransactionHistory.jsx from mehdabdelkader/anycoder-199dccbb: direct link, hf CLI and curl.
- Browser
- Download file 1.26 kB
-
https://huggingface.co/spaces/mehdabdelkader/anycoder-199dccbb/resolve/main/components/TransactionHistory.jsx
- Command line
-
hf download hf://spaces/mehdabdelkader/anycoder-199dccbb/components/TransactionHistory.jsx
-
curl -L -o TransactionHistory.jsx https://huggingface.co/spaces/mehdabdelkader/anycoder-199dccbb/resolve/main/components/TransactionHistory.jsx
1.26 kB
| export default function TransactionHistory() { | |
| // Mock transaction data | |
| const transactions = [ | |
| { id: 1, amount: "500 DJF", from: "Waafi", to: "DMoney", phone: "77 123 4567", date: "10/05/2023" }, | |
| { id: 2, amount: "1000 DJF", from: "DMoney", to: "Waafi", phone: "77 987 6543", date: "09/05/2023" }, | |
| { id: 3, amount: "750 DJF", from: "Waafi", to: "DMoney", phone: "77 555 1234", date: "08/05/2023" }, | |
| ]; | |
| return ( | |
| <div className="bg-white rounded-xl shadow-lg p-6 mt-6"> | |
| <h2 className="text-lg font-bold text-gray-800 mb-4">Historique des transactions</h2> | |
| <div className="space-y-3"> | |
| {transactions.map((transaction) => ( | |
| <div key={transaction.id} className="flex justify-between items-center border-b pb-3"> | |
| <div> | |
| <div className="font-medium">{transaction.amount}</div> | |
| <div className="text-sm text-gray-500"> | |
| {transaction.from} → {transaction.to} | |
| </div> | |
| </div> | |
| <div className="text-right"> | |
| <div className="text-sm">{transaction.phone}</div> | |
| <div className="text-xs text-gray-400">{transaction.date}</div> | |
| </div> | |
| </div> | |
| ))} | |
| </div> | |
| </div> | |
| ); | |
| } |