Rename variables to non dom element names #71

Merged
jank merged 3 commits from fix/rename-to-not-standard-dom-elements into main 2025-03-12 18:52:31 +00:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit a7d98e1150 - Show all commits

View file

@ -85,7 +85,7 @@
<app-confirmation <app-confirmation
[successful]="isDepositSuccessful" [successful]="isDepositSuccessful"
(close)="closeDepositConfirmationModal()" (closeConfirmation)="closeDepositConfirmationModal()"
></app-confirmation> ></app-confirmation>
<div class="card p-4"> <div class="card p-4">

View file

@ -19,11 +19,11 @@ import gsap from 'gsap';
}) })
export class ConfirmationComponent implements AfterViewInit, OnDestroy { export class ConfirmationComponent implements AfterViewInit, OnDestroy {
@Input() successful = true; @Input() successful = true;
@Output() close = new EventEmitter<void>(); @Output() closeConfirmation = new EventEmitter<void>();
@ViewChild('modalBg') modalBg!: ElementRef; @ViewChild('modalBg') modalBg!: ElementRef;
@ViewChild('modalCard') modalCard!: ElementRef; @ViewChild('modalCard') modalCard!: ElementRef;
constructor(private modalAnimationService: ModalAnimationService) {} constructor(private modalAnimationService: ModalAnimationService) { }
ngAfterViewInit() { ngAfterViewInit() {
if (this.successful) { if (this.successful) {
@ -43,7 +43,7 @@ export class ConfirmationComponent implements AfterViewInit, OnDestroy {
this.modalAnimationService.closeModal( this.modalAnimationService.closeModal(
this.modalCard.nativeElement, this.modalCard.nativeElement,
this.modalBg.nativeElement, this.modalBg.nativeElement,
() => this.close.emit() () => this.closeConfirmation.emit()
); );
} }
} }