style: format constructor style in components

This commit is contained in:
Jan K9f 2025-04-02 09:03:36 +02:00 committed by Jan-Marlon Leibl
parent 2405c00f49
commit 2a11675fb6
Signed by: jleibl
GPG key ID: 300B2F906DC6F1D5
3 changed files with 3 additions and 3 deletions

View file

@ -58,7 +58,7 @@ export class PlayingCardComponent implements AfterViewInit, OnChanges {
@Input({ required: true }) hidden!: boolean;
@Input() isNew = false;
constructor(private elementRef: ElementRef) { }
constructor(private elementRef: ElementRef) {}
get isRedSuit(): boolean {
return this.suit === 'HEARTS' || this.suit === 'DIAMONDS';

View file

@ -21,7 +21,7 @@ export default class HomeComponent implements OnInit {
constructor(
public route: ActivatedRoute,
public router: Router
) { }
) {}
ngOnInit() {
this.isDepositSuccessful = this.route.snapshot.queryParams['success'] == 'true';

View file

@ -23,7 +23,7 @@ export class ConfirmationComponent implements AfterViewInit, OnDestroy {
@ViewChild('modalBg') modalBg!: ElementRef;
@ViewChild('modalCard') modalCard!: ElementRef;
constructor(private modalAnimationService: ModalAnimationService) { }
constructor(private modalAnimationService: ModalAnimationService) {}
ngAfterViewInit() {
if (this.successful) {