add new "btn-large" component and move "btn-small" to buttons folder

This commit is contained in:
Chneemann 2024-09-17 17:54:50 +02:00
parent 57fa6389cd
commit 0664fb9e48
34 changed files with 128 additions and 52 deletions

View file

@ -21,6 +21,7 @@
height: fit-content; height: fit-content;
overflow: none; overflow: none;
.content { .content {
padding-right: 8px;
overflow: auto; overflow: auto;
max-height: 580px; max-height: 580px;
} }

View file

@ -7,7 +7,7 @@ import { UserService } from '../../../service/user.service';
import { Router } from '@angular/router'; import { Router } from '@angular/router';
import { User } from '../../../interface/user.interface'; import { User } from '../../../interface/user.interface';
import { SharedService } from '../../../service/shared.service'; import { SharedService } from '../../../service/shared.service';
import { SmallBtnComponent } from '../../../shared/components/small-btn/small-btn.component'; import { SmallBtnComponent } from '../../../shared/components/buttons/small-btn/small-btn.component';
import { OpenSendPrvMessageWindowComponent } from '../show-channel-member/open-send-prv-message-window/open-send-prv-message-window.component'; import { OpenSendPrvMessageWindowComponent } from '../show-channel-member/open-send-prv-message-window/open-send-prv-message-window.component';
import { TranslateModule } from '@ngx-translate/core'; import { TranslateModule } from '@ngx-translate/core';

View file

@ -13,7 +13,7 @@ import { Firestore, addDoc, collection } from '@angular/fire/firestore';
import { DownloadFilesService } from '../../../service/files.service'; import { DownloadFilesService } from '../../../service/files.service';
import { UserService } from '../../../service/user.service'; import { UserService } from '../../../service/user.service';
import { EmojiPickerComponent } from '../../../shared/components/emoji-picker/emoji-picker.component'; import { EmojiPickerComponent } from '../../../shared/components/emoji-picker/emoji-picker.component';
import { SmallBtnComponent } from '../../../shared/components/small-btn/small-btn.component'; import { SmallBtnComponent } from '../../../shared/components/buttons/small-btn/small-btn.component';
import { ChatService } from '../../../service/chat.service'; import { ChatService } from '../../../service/chat.service';
import { Router } from '@angular/router'; import { Router } from '@angular/router';
import { ChannelService } from '../../../service/channel.service'; import { ChannelService } from '../../../service/channel.service';

View file

@ -16,7 +16,7 @@ import { SingleChatComponent } from './single-chat/single-chat.component';
import { ToggleBooleanService } from '../../service/toggle-boolean.service'; import { ToggleBooleanService } from '../../service/toggle-boolean.service';
import { ChatMsgBoxComponent } from './chat-msg-box/chat-msg-box.component'; import { ChatMsgBoxComponent } from './chat-msg-box/chat-msg-box.component';
import { FormsModule } from '@angular/forms'; import { FormsModule } from '@angular/forms';
import { SmallBtnComponent } from '../../shared/components/small-btn/small-btn.component'; import { SmallBtnComponent } from '../../shared/components/buttons/small-btn/small-btn.component';
import { ShowChannelMemberComponent } from './show-channel-member/show-channel-member.component'; import { ShowChannelMemberComponent } from './show-channel-member/show-channel-member.component';
import { SharedService } from '../../service/shared.service'; import { SharedService } from '../../service/shared.service';
import { ChannelInformationComponent } from './channel-information/channel-information.component'; import { ChannelInformationComponent } from './channel-information/channel-information.component';

View file

@ -1,7 +1,7 @@
import { Component, Input } from '@angular/core'; import { Component, Input } from '@angular/core';
import { ToggleBooleanService } from '../../../service/toggle-boolean.service'; import { ToggleBooleanService } from '../../../service/toggle-boolean.service';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { SmallBtnComponent } from '../../../shared/components/small-btn/small-btn.component'; import { SmallBtnComponent } from '../../../shared/components/buttons/small-btn/small-btn.component';
import { User } from '../../../interface/user.interface'; import { User } from '../../../interface/user.interface';
import { FormsModule } from '@angular/forms'; import { FormsModule } from '@angular/forms';
import { ChannelService } from '../../../service/channel.service'; import { ChannelService } from '../../../service/channel.service';

View file

@ -5,7 +5,7 @@ import { CommonModule } from '@angular/common';
import { FormsModule, NgForm } from '@angular/forms'; import { FormsModule, NgForm } from '@angular/forms';
import { ChatService } from '../../../../service/chat.service'; import { ChatService } from '../../../../service/chat.service';
import { PickerComponent } from '@ctrl/ngx-emoji-mart'; import { PickerComponent } from '@ctrl/ngx-emoji-mart';
import { SmallBtnComponent } from '../../../../shared/components/small-btn/small-btn.component'; import { SmallBtnComponent } from '../../../../shared/components/buttons/small-btn/small-btn.component';
import { DownloadFilesService } from '../../../../service/files.service'; import { DownloadFilesService } from '../../../../service/files.service';
import { EmojiPickerComponent } from '../../../../shared/components/emoji-picker/emoji-picker.component'; import { EmojiPickerComponent } from '../../../../shared/components/emoji-picker/emoji-picker.component';
import { UserService } from '../../../../service/user.service'; import { UserService } from '../../../../service/user.service';

View file

@ -1,7 +1,7 @@
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { Component, EventEmitter, Input, Output } from '@angular/core'; import { Component, EventEmitter, Input, Output } from '@angular/core';
import { SingleChatComponent } from '../single-chat.component'; import { SingleChatComponent } from '../single-chat.component';
import { SmallBtnComponent } from '../../../../shared/components/small-btn/small-btn.component'; import { SmallBtnComponent } from '../../../../shared/components/buttons/small-btn/small-btn.component';
import { ChatService } from '../../../../service/chat.service'; import { ChatService } from '../../../../service/chat.service';
import { EmojiPickerComponent } from '../../../../shared/components/emoji-picker/emoji-picker.component'; import { EmojiPickerComponent } from '../../../../shared/components/emoji-picker/emoji-picker.component';
import { UserService } from '../../../../service/user.service'; import { UserService } from '../../../../service/user.service';

View file

@ -1,5 +1,5 @@
import { Component, Input } from '@angular/core'; import { Component, Input } from '@angular/core';
import { SmallBtnComponent } from '../../../../shared/components/small-btn/small-btn.component'; import { SmallBtnComponent } from '../../../../shared/components/buttons/small-btn/small-btn.component';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { import {
Chat, Chat,

View file

@ -9,7 +9,7 @@ import { NgxExtendedPdfViewerModule } from 'ngx-extended-pdf-viewer';
import { OptionsMenuComponent } from './options-menu/options-menu.component'; import { OptionsMenuComponent } from './options-menu/options-menu.component';
import { AttachmentsComponent } from './attachments/attachments.component'; import { AttachmentsComponent } from './attachments/attachments.component';
import { ChatMsgBoxComponent } from '../chat-msg-box/chat-msg-box.component'; import { ChatMsgBoxComponent } from '../chat-msg-box/chat-msg-box.component';
import { SmallBtnComponent } from '../../../shared/components/small-btn/small-btn.component'; import { SmallBtnComponent } from '../../../shared/components/buttons/small-btn/small-btn.component';
import { FormsModule, NgForm } from '@angular/forms'; import { FormsModule, NgForm } from '@angular/forms';
import { PickerComponent } from '@ctrl/ngx-emoji-mart'; import { PickerComponent } from '@ctrl/ngx-emoji-mart';
import { EditMsgComponent } from './edit-msg/edit-msg.component'; import { EditMsgComponent } from './edit-msg/edit-msg.component';

View file

@ -1,7 +1,7 @@
import { Component, inject } from '@angular/core'; import { Component, inject } from '@angular/core';
import { FooterComponent } from '../../../shared/components/login/footer/footer.component'; import { FooterComponent } from '../../../shared/components/login/footer/footer.component';
import { RouterModule } from '@angular/router'; import { RouterModule } from '@angular/router';
import { SmallBtnComponent } from '../../../shared/components/small-btn/small-btn.component'; import { SmallBtnComponent } from '../../../shared/components/buttons/small-btn/small-btn.component';
import { getStorage, ref, uploadBytes, getDownloadURL } from 'firebase/storage'; import { getStorage, ref, uploadBytes, getDownloadURL } from 'firebase/storage';
import { Firestore } from '@angular/fire/firestore'; import { Firestore } from '@angular/fire/firestore';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';

View file

@ -3,7 +3,7 @@ import { FooterComponent } from '../../../shared/components/login/footer/footer.
import { FormsModule, NgForm } from '@angular/forms'; import { FormsModule, NgForm } from '@angular/forms';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router'; import { RouterModule } from '@angular/router';
import { SmallBtnComponent } from '../../../shared/components/small-btn/small-btn.component'; import { SmallBtnComponent } from '../../../shared/components/buttons/small-btn/small-btn.component';
import { getAuth, sendPasswordResetEmail } from 'firebase/auth'; import { getAuth, sendPasswordResetEmail } from 'firebase/auth';
import { Firestore } from '@angular/fire/firestore'; import { Firestore } from '@angular/fire/firestore';
import { Router } from '@angular/router'; import { Router } from '@angular/router';

View file

@ -4,7 +4,7 @@ import { FormsModule, NgForm } from '@angular/forms';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router'; import { RouterModule } from '@angular/router';
import { StartHeaderComponent } from '../../../shared/components/login/start-header/start-header.component'; import { StartHeaderComponent } from '../../../shared/components/login/start-header/start-header.component';
import { SmallBtnComponent } from '../../../shared/components/small-btn/small-btn.component'; import { SmallBtnComponent } from '../../../shared/components/buttons/small-btn/small-btn.component';
import { Router, ActivatedRoute } from '@angular/router'; import { Router, ActivatedRoute } from '@angular/router';
import { getAuth } from 'firebase/auth'; import { getAuth } from 'firebase/auth';
import { confirmPasswordReset } from 'firebase/auth'; import { confirmPasswordReset } from 'firebase/auth';

View file

@ -3,7 +3,7 @@ import { FormsModule, NgForm } from '@angular/forms';
import { Firestore } from '@angular/fire/firestore'; import { Firestore } from '@angular/fire/firestore';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { RouterLink, Router } from '@angular/router'; import { RouterLink, Router } from '@angular/router';
import { SmallBtnComponent } from '../../../shared/components/small-btn/small-btn.component'; import { SmallBtnComponent } from '../../../shared/components/buttons/small-btn/small-btn.component';
import { FooterComponent } from '../../../shared/components/login/footer/footer.component'; import { FooterComponent } from '../../../shared/components/login/footer/footer.component';
import { loginService } from '../../../service/login.service'; import { loginService } from '../../../service/login.service';
import { StartHeaderComponent } from '../../../shared/components/login/start-header/start-header.component'; import { StartHeaderComponent } from '../../../shared/components/login/start-header/start-header.component';

View file

@ -4,7 +4,7 @@ import { UserService } from '../../../service/user.service';
import { User } from '../../../interface/user.interface'; import { User } from '../../../interface/user.interface';
import { ChannelService } from '../../../service/channel.service'; import { ChannelService } from '../../../service/channel.service';
import { Router } from '@angular/router'; import { Router } from '@angular/router';
import { SmallBtnComponent } from '../../../shared/components/small-btn/small-btn.component'; import { SmallBtnComponent } from '../../../shared/components/buttons/small-btn/small-btn.component';
import { ChatService } from '../../../service/chat.service'; import { ChatService } from '../../../service/chat.service';
import { SharedService } from '../../../service/shared.service'; import { SharedService } from '../../../service/shared.service';
import { ToggleBooleanService } from '../../../service/toggle-boolean.service'; import { ToggleBooleanService } from '../../../service/toggle-boolean.service';

View file

@ -56,16 +56,11 @@
placeholder="{{ 'add-new-channel.placeholder2' | translate }}" placeholder="{{ 'add-new-channel.placeholder2' | translate }}"
></textarea> ></textarea>
<div class="btnBox"> <div class="btnBox">
<button <app-btn-large
(click)="createNewChannel()" (click)="createNewChannel()"
[value]="'add-new-channel.create' | translate"
[disabled]="!channelService.btnIsValid" [disabled]="!channelService.btnIsValid"
[ngClass]="{ ></app-btn-large>
disabledBtn: !channelService.btnIsValid,
enableBtn: channelService.btnIsValid
}"
>
{{ "add-new-channel.create" | translate }}
</button>
</div> </div>
</div> </div>
} @if (showNextWindow || showNextWindowMobile) { } @if (showNextWindow || showNextWindowMobile) {
@ -145,9 +140,10 @@
</div> </div>
</div> </div>
<div class="positionCreateBtn"> <div class="positionCreateBtn">
<button class="btnBox" (click)="addNewChannel()"> <app-btn-large
{{ "add-new-channel.create" | translate }} (click)="addNewChannel()"
</button> [value]="'add-new-channel.create' | translate"
></app-btn-large>
</div> </div>
</div> </div>
} }

View file

@ -1,7 +1,7 @@
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { Component, Input } from '@angular/core'; import { Component, Input } from '@angular/core';
import { ChannelService } from '../../../../service/channel.service'; import { ChannelService } from '../../../../service/channel.service';
import { SmallBtnComponent } from '../../../../shared/components/small-btn/small-btn.component'; import { SmallBtnComponent } from '../../../../shared/components/buttons/small-btn/small-btn.component';
import { FormsModule } from '@angular/forms'; import { FormsModule } from '@angular/forms';
import { UserService } from '../../../../service/user.service'; import { UserService } from '../../../../service/user.service';
import { User } from '../../../../interface/user.interface'; import { User } from '../../../../interface/user.interface';
@ -10,11 +10,18 @@ import { Router } from '@angular/router';
import { SharedService } from '../../../../service/shared.service'; import { SharedService } from '../../../../service/shared.service';
import { ToggleBooleanService } from '../../../../service/toggle-boolean.service'; import { ToggleBooleanService } from '../../../../service/toggle-boolean.service';
import { TranslateModule } from '@ngx-translate/core'; import { TranslateModule } from '@ngx-translate/core';
import { BtnLargeComponent } from '../../../../shared/components/buttons/btn-large/btn-large.component';
@Component({ @Component({
selector: 'app-add-new-channel', selector: 'app-add-new-channel',
standalone: true, standalone: true,
imports: [CommonModule, SmallBtnComponent, FormsModule, TranslateModule], imports: [
CommonModule,
SmallBtnComponent,
BtnLargeComponent,
FormsModule,
TranslateModule,
],
templateUrl: './add-new-channel.component.html', templateUrl: './add-new-channel.component.html',
styleUrl: './add-new-channel.component.scss', styleUrl: './add-new-channel.component.scss',
}) })

View file

@ -3,7 +3,7 @@ import { ChannelService } from '../../../service/channel.service';
import { Channel, publicChannels } from '../../../interface/channel.interface'; import { Channel, publicChannels } from '../../../interface/channel.interface';
import { RouterLink } from '@angular/router'; import { RouterLink } from '@angular/router';
import { ChatService } from '../../../service/chat.service'; import { ChatService } from '../../../service/chat.service';
import { SmallBtnComponent } from '../../../shared/components/small-btn/small-btn.component'; import { SmallBtnComponent } from '../../../shared/components/buttons/small-btn/small-btn.component';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms'; import { FormsModule } from '@angular/forms';
import { AddNewChannelComponent } from './add-new-channel/add-new-channel.component'; import { AddNewChannelComponent } from './add-new-channel/add-new-channel.component';

View file

@ -2,7 +2,7 @@ import { Component, HostListener, Input } from '@angular/core';
import { SidebarDirectMessagesUserComponent } from '../sidebar-direct-messages-user/sidebar-direct-messages-user.component'; import { SidebarDirectMessagesUserComponent } from '../sidebar-direct-messages-user/sidebar-direct-messages-user.component';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { TranslateModule } from '@ngx-translate/core'; import { TranslateModule } from '@ngx-translate/core';
import { SmallBtnComponent } from '../../../shared/components/small-btn/small-btn.component'; import { SmallBtnComponent } from '../../../shared/components/buttons/small-btn/small-btn.component';
import { ShowAllUsersComponent } from '../show-all-users/show-all-users.component'; import { ShowAllUsersComponent } from '../show-all-users/show-all-users.component';
@Component({ @Component({

View file

@ -2,7 +2,7 @@ import { Component, Input, OnInit } from '@angular/core';
import { ActivatedRoute, RouterModule } from '@angular/router'; import { ActivatedRoute, RouterModule } from '@angular/router';
import { SidebarChannelsComponent } from './sidebar-channels/sidebar-channels.component'; import { SidebarChannelsComponent } from './sidebar-channels/sidebar-channels.component';
import { SidebarDirectMessagesComponent } from './sidebar-direct-messages/sidebar-direct-messages.component'; import { SidebarDirectMessagesComponent } from './sidebar-direct-messages/sidebar-direct-messages.component';
import { SmallBtnComponent } from '../../shared/components/small-btn/small-btn.component'; import { SmallBtnComponent } from '../../shared/components/buttons/small-btn/small-btn.component';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { ChannelService } from '../../service/channel.service'; import { ChannelService } from '../../service/channel.service';
import { ToggleBooleanService } from '../../service/toggle-boolean.service'; import { ToggleBooleanService } from '../../service/toggle-boolean.service';

View file

@ -0,0 +1,3 @@
<button class="btn" type="{{ type }}" [disabled]="disabled">
<p>{{ value }}</p>
</button>

View file

@ -0,0 +1,33 @@
.btn {
display: flex;
align-items: center;
padding: 12px 24px;
width: fit-content;
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
border-radius: 24px;
background-color: #444df2;
border: 1px solid #444df2;
transition: 300ms ease-in-out;
cursor: pointer;
p {
color: white;
font-size: 18px;
font-weight: 600;
margin: 0 4px 0 0;
}
&:not(:disabled):hover {
background-color: white;
border: 1px solid #444df2;
transition: 300ms ease-in-out;
color: #444df2;
p {
color: #444df2;
}
}
&:disabled {
background-color: gray;
color: darken(white, 10%);
border: 1px solid gray;
cursor: default;
}
}

View file

@ -0,0 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { BtnLargeComponent } from './btn-large.component';
describe('BtnLargeComponent', () => {
let component: BtnLargeComponent;
let fixture: ComponentFixture<BtnLargeComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [BtnLargeComponent]
})
.compileComponents();
fixture = TestBed.createComponent(BtnLargeComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View file

@ -0,0 +1,15 @@
import { CommonModule } from '@angular/common';
import { Component, Input } from '@angular/core';
@Component({
selector: 'app-btn-large',
standalone: true,
imports: [CommonModule],
templateUrl: './btn-large.component.html',
styleUrl: './btn-large.component.scss',
})
export class BtnLargeComponent {
@Input() type: string = '';
@Input() value: string = '';
@Input() disabled: boolean = false;
}

View file

@ -12,7 +12,7 @@ import { UserService } from '../../../../../service/user.service';
import { FormsModule, NgForm } from '@angular/forms'; import { FormsModule, NgForm } from '@angular/forms';
import { ChannelService } from '../../../../../service/channel.service'; import { ChannelService } from '../../../../../service/channel.service';
import { TranslateModule } from '@ngx-translate/core'; import { TranslateModule } from '@ngx-translate/core';
import { SmallBtnComponent } from '../../../small-btn/small-btn.component'; import { SmallBtnComponent } from '../../../buttons/small-btn/small-btn.component';
@Component({ @Component({
selector: 'app-edit-user-details', selector: 'app-edit-user-details',

View file

@ -3,7 +3,7 @@ import { Component, EventEmitter, Input, Output } from '@angular/core';
import { EditUserDetailsComponent } from './edit-user-details/edit-user-details.component'; import { EditUserDetailsComponent } from './edit-user-details/edit-user-details.component';
import { UserService } from '../../../../service/user.service'; import { UserService } from '../../../../service/user.service';
import { TranslateModule } from '@ngx-translate/core'; import { TranslateModule } from '@ngx-translate/core';
import { SmallBtnComponent } from '../../small-btn/small-btn.component'; import { SmallBtnComponent } from '../../buttons/small-btn/small-btn.component';
@Component({ @Component({
selector: 'app-edit-user', selector: 'app-edit-user',

View file

@ -6,7 +6,7 @@ import { SearchBarComponent } from './search-bar/search-bar.component';
import { ToggleBooleanService } from '../../../service/toggle-boolean.service'; import { ToggleBooleanService } from '../../../service/toggle-boolean.service';
import { ChatService } from '../../../service/chat.service'; import { ChatService } from '../../../service/chat.service';
import { SharedService } from '../../../service/shared.service'; import { SharedService } from '../../../service/shared.service';
import { SmallBtnComponent } from '../small-btn/small-btn.component'; import { SmallBtnComponent } from '../buttons/small-btn/small-btn.component';
import { LanguageService } from '../../../service/language.service'; import { LanguageService } from '../../../service/language.service';
import { TranslateModule } from '@ngx-translate/core'; import { TranslateModule } from '@ngx-translate/core';

View file

@ -1,8 +1,8 @@
import { Component } from '@angular/core'; import { Component } from '@angular/core';
import { Location } from '@angular/common'; import { Location } from '@angular/common';
import { TranslateModule } from '@ngx-translate/core'; import { TranslateModule } from '@ngx-translate/core';
import { HeaderComponent } from "../login/header/header.component"; import { HeaderComponent } from '../login/header/header.component';
import { SmallBtnComponent } from "../small-btn/small-btn.component"; import { SmallBtnComponent } from '../buttons/small-btn/small-btn.component';
import { RouterLink } from '@angular/router'; import { RouterLink } from '@angular/router';
@Component({ @Component({
@ -10,12 +10,11 @@ import { RouterLink } from '@angular/router';
standalone: true, standalone: true,
templateUrl: './imprint.component.html', templateUrl: './imprint.component.html',
styleUrl: './imprint.component.scss', styleUrl: './imprint.component.scss',
imports: [TranslateModule, HeaderComponent, SmallBtnComponent,RouterLink] imports: [TranslateModule, HeaderComponent, SmallBtnComponent, RouterLink],
}) })
export class ImprintComponent { export class ImprintComponent {
constructor(private location: Location) {} constructor(private location: Location) {}
/** /**
* Navigates back to the previous location. * Navigates back to the previous location.
*/ */

View file

@ -4,7 +4,7 @@ import { RouterLink } from '@angular/router';
import { loginService } from '../../../../service/login.service'; import { loginService } from '../../../../service/login.service';
import { TranslateModule } from '@ngx-translate/core'; import { TranslateModule } from '@ngx-translate/core';
import { LanguageService } from '../../../../service/language.service'; import { LanguageService } from '../../../../service/language.service';
import { SmallBtnComponent } from '../../small-btn/small-btn.component'; import { SmallBtnComponent } from '../../buttons/small-btn/small-btn.component';
import { SharedService } from '../../../../service/shared.service'; import { SharedService } from '../../../../service/shared.service';
@Component({ @Component({

View file

@ -1,7 +1,7 @@
import { Component, HostListener, OnInit } from '@angular/core'; import { Component, HostListener, OnInit } from '@angular/core';
import { OverlayService } from '../../../service/overlay.service'; import { OverlayService } from '../../../service/overlay.service';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { SmallBtnComponent } from '../small-btn/small-btn.component'; import { SmallBtnComponent } from '../buttons/small-btn/small-btn.component';
@Component({ @Component({
selector: 'app-overlay', selector: 'app-overlay',

View file

@ -1,8 +1,8 @@
import { Component } from '@angular/core'; import { Component } from '@angular/core';
import { Location } from '@angular/common'; import { Location } from '@angular/common';
import { TranslateModule } from '@ngx-translate/core'; import { TranslateModule } from '@ngx-translate/core';
import { HeaderComponent } from "../login/header/header.component"; import { HeaderComponent } from '../login/header/header.component';
import { SmallBtnComponent } from "../small-btn/small-btn.component"; import { SmallBtnComponent } from '../buttons/small-btn/small-btn.component';
import { RouterLink } from '@angular/router'; import { RouterLink } from '@angular/router';
@Component({ @Component({
@ -10,12 +10,11 @@ import { RouterLink } from '@angular/router';
standalone: true, standalone: true,
templateUrl: './privacy-policy.component.html', templateUrl: './privacy-policy.component.html',
styleUrl: './privacy-policy.component.scss', styleUrl: './privacy-policy.component.scss',
imports: [TranslateModule, HeaderComponent, SmallBtnComponent, RouterLink] imports: [TranslateModule, HeaderComponent, SmallBtnComponent, RouterLink],
}) })
export class PrivacyPolicyComponent { export class PrivacyPolicyComponent {
constructor(private location: Location) {} constructor(private location: Location) {}
/** /**
* Navigates back to the previous location in the browser history. * Navigates back to the previous location in the browser history.
*/ */