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 {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<number>) {}
private currentThemeService: CurrentThemeService) {}
canActivate(
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 {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 {