refactor(blackjack): rename event emitters for clarity
All checks were successful
CI / Get Changed Files (pull_request) Successful in 6s
CI / Checkstyle Main (pull_request) Has been skipped
CI / prettier (pull_request) Successful in 37s
CI / eslint (pull_request) Successful in 39s
CI / test-build (pull_request) Successful in 46s

This commit is contained in:
Jan-Marlon Leibl 2025-03-26 13:34:54 +01:00
parent 5e5fe603f9
commit 03ce527087
Signed by: jleibl
GPG key ID: 300B2F906DC6F1D5
3 changed files with 14 additions and 16 deletions

View file

@ -19,16 +19,14 @@ import { CommonModule, CurrencyPipe } from '@angular/common';
{{ currentBet | currency: 'EUR' }}
</span>
</div>
<button class="button-primary w-full py-2" (click)="onNewGameClick.emit()">
Neues Spiel
</button>
<button class="button-primary w-full py-2" (click)="newGame.emit()">Neues Spiel</button>
</div>
</div>
`,
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class GameInfoComponent {
@Input() balance: number = 0;
@Input() currentBet: number = 0;
@Output() onNewGameClick = new EventEmitter<void>();
@Input() balance = 0;
@Input() currentBet = 0;
@Output() newGame = new EventEmitter<void>();
}