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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user