diff --git a/frontend/src/app/core/layout/header/header.css b/frontend/src/app/core/layout/header/header.css deleted file mode 100644 index e5ccefc..0000000 --- a/frontend/src/app/core/layout/header/header.css +++ /dev/null @@ -1,4 +0,0 @@ -:host{ - display: block; - width: 100svw; -} diff --git a/frontend/src/app/core/layout/header/header.html b/frontend/src/app/core/layout/header/header.html deleted file mode 100644 index 383b77f..0000000 --- a/frontend/src/app/core/layout/header/header.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - NeoBan - - - @if (authStore.isLoading()) { - Loading... - } - @else if (authStore.user() === null) { - - - - Login - - - Register - - - } - @else{ - - - New Chat - - - {{ authStore.user()?.name }} - - - Logout - - - } - - - diff --git a/frontend/src/app/core/layout/header/header.spec.ts b/frontend/src/app/core/layout/header/header.spec.ts deleted file mode 100644 index 9ef7403..0000000 --- a/frontend/src/app/core/layout/header/header.spec.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { ComponentFixture, TestBed } from '@angular/core/testing'; - -import { Header } from './header'; - -describe('Header', () => { - let component: Header; - let fixture: ComponentFixture; - - beforeEach(async () => { - await TestBed.configureTestingModule({ - imports: [Header], - }).compileComponents(); - - fixture = TestBed.createComponent(Header); - component = fixture.componentInstance; - await fixture.whenStable(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/frontend/src/app/core/layout/header/header.ts b/frontend/src/app/core/layout/header/header.ts deleted file mode 100644 index 15d1cd5..0000000 --- a/frontend/src/app/core/layout/header/header.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Component, inject } from '@angular/core'; -import { RouterLink } from '@angular/router'; -import { AuthStore } from '../../../auth/auth.store'; -import { MessageStore } from '../../../chat/chat.store'; - -@Component({ - selector: 'app-header', - imports: [RouterLink], - templateUrl: './header.html', - styleUrl: './header.css', -}) -export class Header { - protected readonly authStore = inject(AuthStore); - protected readonly chatStore = inject(MessageStore); -}
Loading...