refactor(deposit): rename close event emitter for clarity

This commit is contained in:
Jan K9f 2025-03-12 19:25:11 +01:00
parent a7d98e1150
commit abc4277e84
Signed by: jank
GPG key ID: 22BEAC760B3333D6
2 changed files with 3 additions and 3 deletions

View file

@ -32,7 +32,7 @@ import gsap from 'gsap';
})
export class DepositComponent implements OnInit, AfterViewInit, OnDestroy, OnChanges {
@Input() isOpen = false;
@Output() close = new EventEmitter<void>();
@Output() closeModalEmitter = new EventEmitter<void>();
@ViewChild('modalBg') modalBg!: ElementRef;
@ViewChild('modalCard') modalCard!: ElementRef;
protected form!: FormGroup;
@ -110,7 +110,7 @@ export class DepositComponent implements OnInit, AfterViewInit, OnDestroy, OnCha
this.modalAnimationService.closeModal(
this.modalCard.nativeElement,
this.modalBg.nativeElement,
() => this.close.emit()
() => this.closeModalEmitter.emit()
);
}
}

View file

@ -73,7 +73,7 @@
<h3 class="section-heading text-xl mb-4">Konto</h3>
<div class="space-y-4">
<button class="button-primary w-full py-2" (click)="openDepositModal()">Einzahlen</button>
<app-deposit [isOpen]="isDepositModalOpen" (close)="closeDepositModal()"></app-deposit>
<app-deposit [isOpen]="isDepositModalOpen" (closeModalEmitter)="closeDepositModal()"></app-deposit>
<button class="bg-deep-blue-light hover:bg-deep-blue-contrast w-full py-2 rounded">
Transaktionen
</button>