Remove unused lifecycle methodes Fix #87
This commit is contained in:
@@ -13,7 +13,7 @@ import { TransactionData } from '../dashboard.component';
|
||||
templateUrl: './user-dialog.component.html',
|
||||
styleUrls: ['./user-dialog.component.scss'],
|
||||
})
|
||||
export class UserDialogComponent implements OnInit {
|
||||
export class UserDialogComponent {
|
||||
constructor(
|
||||
private dataService: DataService,
|
||||
public dialog: MatDialog,
|
||||
@@ -21,8 +21,6 @@ export class UserDialogComponent implements OnInit {
|
||||
@Inject(MAT_DIALOG_DATA) public data: TransactionData
|
||||
) {}
|
||||
|
||||
ngOnInit(): void {}
|
||||
|
||||
onSubmit() {
|
||||
//TODO check tat price is decimal
|
||||
console.log(
|
||||
|
@@ -6,14 +6,12 @@ import { TokenStorageService } from 'src/app/Services/token.service';
|
||||
templateUrl: './header.component.html',
|
||||
styleUrls: ['./header.component.scss'],
|
||||
})
|
||||
export class HeaderComponent implements OnInit {
|
||||
export class HeaderComponent {
|
||||
/**
|
||||
* @param {TokenStorageService} privatetokenStorage
|
||||
*/
|
||||
constructor(private tokenStorage: TokenStorageService) {}
|
||||
|
||||
ngOnInit(): void {}
|
||||
|
||||
//logout() clears session storage; All user data is eradicated from it and page is reloaded
|
||||
logout() {
|
||||
this.tokenStorage.signOut();
|
||||
|
@@ -5,11 +5,9 @@ import { Component, OnInit } from '@angular/core';
|
||||
templateUrl: './confirmation-dialog.component.html',
|
||||
styleUrls: ['./confirmation-dialog.component.scss'],
|
||||
})
|
||||
export class ConfirmationDialogComponent implements OnInit {
|
||||
export class ConfirmationDialogComponent {
|
||||
constructor() {}
|
||||
|
||||
ngOnInit(): void {}
|
||||
|
||||
confirm() {}
|
||||
|
||||
returnBack() {}
|
||||
|
@@ -5,10 +5,8 @@ import { Component, OnInit } from '@angular/core';
|
||||
templateUrl: './help-dialog.component.html',
|
||||
styleUrls: ['./help-dialog.component.scss'],
|
||||
})
|
||||
export class HelpDialogComponent implements OnInit {
|
||||
export class HelpDialogComponent {
|
||||
constructor() {}
|
||||
|
||||
ngOnInit(): void {}
|
||||
|
||||
close() {}
|
||||
}
|
||||
|
@@ -7,7 +7,7 @@ import { AuthService } from '../../Services/auth.service';
|
||||
templateUrl: './register.component.html',
|
||||
styleUrls: ['./register.component.scss'],
|
||||
})
|
||||
export class RegisterComponent implements OnInit {
|
||||
export class RegisterComponent {
|
||||
form: any = {
|
||||
email: null,
|
||||
password: null,
|
||||
@@ -22,7 +22,6 @@ export class RegisterComponent implements OnInit {
|
||||
* @param {Router} privaterouter
|
||||
*/
|
||||
constructor(private authService: AuthService, private router: Router) {}
|
||||
ngOnInit(): void {}
|
||||
onSubmit(): void {
|
||||
const { email, username, password } = this.form;
|
||||
this.authService.register(email, username, password).subscribe(
|
||||
|
Reference in New Issue
Block a user