formatted

This commit is contained in:
Lea 2025-02-19 13:00:27 +01:00
parent 09ccad479e
commit 428c33b000
2 changed files with 34 additions and 26 deletions

View file

@ -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() {