fix: lint errors

This commit is contained in:
Evgeny Lupanov 2020-03-25 19:42:11 +03:00 committed by Sergey Andrievskiy
parent 5d392c1722
commit a1fed413e6
2 changed files with 3 additions and 9 deletions

View file

@ -3,13 +3,11 @@ import {ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot} from '
import {Observable} from 'rxjs'; import {Observable} from 'rxjs';
import {map} from 'rxjs/operators'; import {map} from 'rxjs/operators';
import {CurrentThemeService} from '../utils/theme.service'; import {CurrentThemeService} from '../utils/theme.service';
import {NbDateService} from '@nebular/theme';
@Injectable() @Injectable()
export class ThemeGuard implements CanActivate { export class ThemeGuard implements CanActivate {
constructor(private router: Router, constructor(private router: Router,
private currentThemeService: CurrentThemeService, private currentThemeService: CurrentThemeService) {}
private dateService: NbDateService<number>) {}
canActivate( canActivate(
route: ActivatedRouteSnapshot, route: ActivatedRouteSnapshot,

View file

@ -1,6 +1,6 @@
import {Component, enableProdMode, OnDestroy} from '@angular/core'; import {Component, OnDestroy} from '@angular/core';
import {NbMediaBreakpoint, NbThemeService} from '@nebular/theme'; import {NbMediaBreakpoint, NbThemeService} from '@nebular/theme';
import {ActivatedRoute, Router} from '@angular/router'; import {Router} from '@angular/router';
import {AnalyticsService} from '../@core/utils'; import {AnalyticsService} from '../@core/utils';
import { environment } from '../../environments/environment'; import { environment } from '../../environments/environment';
@ -13,8 +13,6 @@ export class NgxStarterComponent implements OnDestroy {
breakpoint: NbMediaBreakpoint; breakpoint: NbMediaBreakpoint;
breakpoints: any; breakpoints: any;
private alive = true;
themes = [ themes = [
{ {
value: 'material-light', value: 'material-light',
@ -43,7 +41,6 @@ export class NgxStarterComponent implements OnDestroy {
]; ];
constructor(private router: Router, constructor(private router: Router,
private route: ActivatedRoute,
protected themeService: NbThemeService, protected themeService: NbThemeService,
private analytics: AnalyticsService, private analytics: AnalyticsService,
) {} ) {}
@ -65,7 +62,6 @@ export class NgxStarterComponent implements OnDestroy {
} }
ngOnDestroy() { ngOnDestroy() {
this.alive = false;
} }
calculateExpiration(iat: number): number { calculateExpiration(iat: number): number {