feat(transaction): add transaction retrieval and DTO mapping

This commit is contained in:
csimonis 2025-04-23 10:29:51 +02:00
parent 5575955440
commit d6077645d9
13 changed files with 146 additions and 13 deletions

View file

@ -100,11 +100,11 @@
<div class="space-y-3">
<div
class="flex justify-between items-center"
*ngFor="let transaction of recentTransactions"
*ngFor="let transaction of recentTransactions|async"
>
<div>
<p class="text-sm font-medium">{{ transaction.type }}</p>
<p class="text-xs text-text-secondary">{{ transaction.date }}</p>
<p class="text-xs text-text-secondary">{{ transaction.createdAt | date }}</p>
</div>
<span [class]="transaction.amount > 0 ? 'text-emerald' : 'text-accent-red'">
{{ transaction.amount | currency: 'EUR' }}