feature: removed angular materials and implemented new deposit modal

This commit is contained in:
Lea 2025-02-26 12:41:35 +01:00
parent 0100df89f5
commit 604d593fdc
10 changed files with 66 additions and 48 deletions

View file

@ -1,17 +1,20 @@
import { ChangeDetectionStrategy, Component } from '@angular/core';
import {ChangeDetectionStrategy, Component, inject} from '@angular/core';
import { NavbarComponent } from '../../shared/components/navbar/navbar.component';
import { CurrencyPipe, NgFor } from '@angular/common';
import { Game } from '../../model/Game';
import { Transaction } from '../../model/Transaction';
import {DepositComponent} from "../deposit/deposit.component";
@Component({
selector: 'app-homepage',
standalone: true,
imports: [NavbarComponent, CurrencyPipe, NgFor],
imports: [NavbarComponent, CurrencyPipe, NgFor, DepositComponent],
templateUrl: './home.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
export default class HomeComponent {
isDepositModalOpen = false;
featuredGames: Game[] = [
{
id: '1',
@ -67,4 +70,11 @@ export default class HomeComponent {
date: '2024-03-18',
},
];
openDepositModal(){
this.isDepositModalOpen = true;
}
closeDepositModal(){
this.isDepositModalOpen = false;
}
}