style: format constructor style in components
Some checks failed
CI / Get Changed Files (pull_request) Successful in 6s
CI / Checkstyle Main (pull_request) Has been skipped
CI / test-build (pull_request) Failing after 20s
CI / prettier (pull_request) Successful in 49s
CI / eslint (pull_request) Successful in 51s

This commit is contained in:
Jan K9f 2025-04-02 09:03:36 +02:00
parent 01989ae5bc
commit fb6655a196
Signed by: jank
GPG key ID: 22BEAC760B3333D6
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({ required: true }) hidden!: boolean;
@Input() isNew = false; @Input() isNew = false;
constructor(private elementRef: ElementRef) { } constructor(private elementRef: ElementRef) {}
get isRedSuit(): boolean { get isRedSuit(): boolean {
return this.suit === 'HEARTS' || this.suit === 'DIAMONDS'; return this.suit === 'HEARTS' || this.suit === 'DIAMONDS';

View file

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