style:fixed prettier and eslint

This commit is contained in:
Lea 2025-02-26 13:09:49 +01:00
parent 25492f3e68
commit 6c6e2b5cb5
4 changed files with 4 additions and 5 deletions

View file

@ -1,5 +1,5 @@
<ng-container *ngIf="isOpen"> <ng-container *ngIf="isOpen">
<div class="fixed inset-0 bg-black/70 z-50" (click)="closeModal()"> <div class="fixed inset-0 bg-black/70 z-50 focus:outline-none focus:ring-2 focus:purple">
<div <div
class="card p-4 fixed top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 bg-white p-6 rounded-lg shadow-lg z-50 min-w-[300px]" class="card p-4 fixed top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 bg-white p-6 rounded-lg shadow-lg z-50 min-w-[300px]"
> >

View file

@ -22,7 +22,7 @@ import { NgIf } from '@angular/common';
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
}) })
export class DepositComponent implements OnInit { export class DepositComponent implements OnInit {
@Input() isOpen: boolean = false; @Input() isOpen = false;
@Output() close = new EventEmitter<void>(); @Output() close = new EventEmitter<void>();
protected form!: FormGroup; protected form!: FormGroup;
protected errorMsg = ''; protected errorMsg = '';

View file

@ -61,6 +61,7 @@
<h3 class="section-heading text-xl mb-4">Konto</h3> <h3 class="section-heading text-xl mb-4">Konto</h3>
<div class="space-y-4"> <div class="space-y-4">
<button class="button-base w-full py-2" (click)="openDepositModal()">Einzahlen</button> <button class="button-base w-full py-2" (click)="openDepositModal()">Einzahlen</button>
<app-deposit [isOpen]="isDepositModalOpen" (close)="closeDepositModal()"></app-deposit>
<button class="bg-deep-blue-light hover:bg-deep-blue-contrast w-full py-2 rounded"> <button class="bg-deep-blue-light hover:bg-deep-blue-contrast w-full py-2 rounded">
Transaktionen Transaktionen
</button> </button>
@ -70,8 +71,6 @@
</div> </div>
</div> </div>
<app-deposit [isOpen]="isDepositModalOpen" (close)="closeDepositModal()"></app-deposit>
<div class="card p-4"> <div class="card p-4">
<h3 class="section-heading text-xl mb-4">Letzte Transaktionen</h3> <h3 class="section-heading text-xl mb-4">Letzte Transaktionen</h3>
<div class="space-y-3"> <div class="space-y-3">

View file

@ -1,4 +1,4 @@
import { ChangeDetectionStrategy, Component, inject } from '@angular/core'; import { ChangeDetectionStrategy, Component } from '@angular/core';
import { NavbarComponent } from '../../shared/components/navbar/navbar.component'; import { NavbarComponent } from '../../shared/components/navbar/navbar.component';
import { CurrencyPipe, NgFor } from '@angular/common'; import { CurrencyPipe, NgFor } from '@angular/common';
import { Game } from '../../model/Game'; import { Game } from '../../model/Game';