-
+
-
{{transaction.type}}
-
{{transaction.date}}
+
{{ transaction.type }}
+
{{ transaction.date }}
0 ? 'text-emerald' : 'text-accent-red'">
- {{transaction.amount | currency:'EUR'}}
+ {{ transaction.amount | currency: 'EUR' }}
diff --git a/frontend/src/app/feature/home/home.component.ts b/frontend/src/app/feature/home/home.component.ts
index fc53cf5..ebb2f02 100644
--- a/frontend/src/app/feature/home/home.component.ts
+++ b/frontend/src/app/feature/home/home.component.ts
@@ -3,7 +3,7 @@ import { KeycloakService } from 'keycloak-angular';
import { MatDialog } from '@angular/material/dialog';
import { DepositComponent } from '../deposit/deposit.component';
import { NavbarComponent } from '../../shared/components/navbar/navbar.component';
-import {CurrencyPipe, NgFor} from "@angular/common";
+import { CurrencyPipe, NgFor } from '@angular/common';
interface Game {
id: string;
@@ -31,7 +31,7 @@ export default class HomeComponent {
userAvatar = '/assets/images/default-avatar.png';
username = this.keycloakService.getUsername();
vipLevel = 1;
- balance = 1000.00;
+ balance = 1000.0;
featuredGames: Game[] = [
{
@@ -63,7 +63,7 @@ export default class HomeComponent {
id: '6',
name: 'Lootboxen',
image: '/lootbox.webp',
- }
+ },
];
allGames: Game[] = [...this.featuredGames];
@@ -72,21 +72,21 @@ export default class HomeComponent {
{
id: '1',
type: 'Deposit',
- amount: 100.00,
- date: '2024-03-20'
+ amount: 100.0,
+ date: '2024-03-20',
},
{
id: '2',
type: 'Withdrawal',
- amount: -50.00,
- date: '2024-03-19'
+ amount: -50.0,
+ date: '2024-03-19',
},
{
id: '3',
type: 'Bonus',
- amount: 25.00,
- date: '2024-03-18'
- }
+ amount: 25.0,
+ date: '2024-03-18',
+ },
];
public logout() {