refactor: remove docker folder, refactor frontend files

This commit is contained in:
Phan Huy Tran 2025-05-14 09:33:38 +02:00
commit 34ff29c7ac
27 changed files with 94 additions and 192 deletions

View file

@ -21,7 +21,7 @@ import { AnimatedNumberComponent } from '@blackjack/components/animated-number/a
export class NavbarComponent implements OnInit, OnDestroy {
isMenuOpen = false;
private authService: AuthService = inject(AuthService);
isLoggedIn = this.authService.isLoggedIn();
isLoggedIn = signal(this.authService.isLoggedIn());
private authSubscription!: Subscription;
public balance = signal(0);
@ -30,6 +30,7 @@ export class NavbarComponent implements OnInit, OnDestroy {
this.authSubscription = this.authService.userSubject.subscribe({
next: (user) => {
this.balance.set(user?.balance ?? 0);
this.isLoggedIn.set(this.authService.isLoggedIn());
},
});
}