fix(dashboard): transactions tab uses real payment fields + empty state

The transactions list/card read mock fields (appointment_details,
row.amount, status 'received') and iterated user.turns.done. Pass the
real payments array and read order_id/type/created_at/amount_rials/status
from Payment.toArray(); map status to Persian labels, show rials→toman,
and render an empty state when there are no transactions.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
hamed
2026-06-15 21:48:06 +03:30
co-authored by Claude Opus 4.8
parent 8a87d9cf92
commit c80f002670
3 changed files with 67 additions and 91 deletions
@@ -71,7 +71,7 @@ function Transactions({ user, loading }) {
</p>
<Head status={status} setStatus={handleStatusChange} />
<List
user={{ ...user, turns: { done: payments } }}
payments={payments}
loading={isLoading}
page={page}
totalPages={totalPages}