From a1fed413e6fb09d77dec68105af834b91bb1d0b6 Mon Sep 17 00:00:00 2001 From: Evgeny Lupanov Date: Wed, 25 Mar 2020 19:42:11 +0300 Subject: [PATCH] fix: lint errors --- src/app/@core/guard/theme.guard.ts | 4 +--- src/app/themes-screen/starter.component.ts | 8 ++------ 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/app/@core/guard/theme.guard.ts b/src/app/@core/guard/theme.guard.ts index 016172bc..c02432d9 100644 --- a/src/app/@core/guard/theme.guard.ts +++ b/src/app/@core/guard/theme.guard.ts @@ -3,13 +3,11 @@ import {ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot} from ' import {Observable} from 'rxjs'; import {map} from 'rxjs/operators'; import {CurrentThemeService} from '../utils/theme.service'; -import {NbDateService} from '@nebular/theme'; @Injectable() export class ThemeGuard implements CanActivate { constructor(private router: Router, - private currentThemeService: CurrentThemeService, - private dateService: NbDateService) {} + private currentThemeService: CurrentThemeService) {} canActivate( route: ActivatedRouteSnapshot, diff --git a/src/app/themes-screen/starter.component.ts b/src/app/themes-screen/starter.component.ts index fae2c015..420acfab 100644 --- a/src/app/themes-screen/starter.component.ts +++ b/src/app/themes-screen/starter.component.ts @@ -1,6 +1,6 @@ -import {Component, enableProdMode, OnDestroy} from '@angular/core'; +import {Component, OnDestroy} from '@angular/core'; import {NbMediaBreakpoint, NbThemeService} from '@nebular/theme'; -import {ActivatedRoute, Router} from '@angular/router'; +import {Router} from '@angular/router'; import {AnalyticsService} from '../@core/utils'; import { environment } from '../../environments/environment'; @@ -13,8 +13,6 @@ export class NgxStarterComponent implements OnDestroy { breakpoint: NbMediaBreakpoint; breakpoints: any; - private alive = true; - themes = [ { value: 'material-light', @@ -43,7 +41,6 @@ export class NgxStarterComponent implements OnDestroy { ]; constructor(private router: Router, - private route: ActivatedRoute, protected themeService: NbThemeService, private analytics: AnalyticsService, ) {} @@ -65,7 +62,6 @@ export class NgxStarterComponent implements OnDestroy { } ngOnDestroy() { - this.alive = false; } calculateExpiration(iat: number): number {