feat(transaction): add transaction retrieval and DTO mapping
This commit is contained in:
		
					parent
					
						
							
								5575955440
							
						
					
				
			
			
				commit
				
					
						d6077645d9
					
				
			
		
					 13 changed files with 146 additions and 13 deletions
				
			
		| 
						 | 
				
			
			@ -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' }}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue