mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 15:40:11 +01:00
fix: lint errors
This commit is contained in:
parent
5d392c1722
commit
a1fed413e6
2 changed files with 3 additions and 9 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue