refactor: remove docker folder, refactor frontend files
This commit is contained in:
parent
8b547eb05b
commit
34ff29c7ac
27 changed files with 94 additions and 192 deletions
|
@ -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());
|
||||
},
|
||||
});
|
||||
}
|
||||
|
|
Reference in a new issue