mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-18 00:10:14 +01:00
feat(dashboard): improve electricity card styles fot default theme
This commit is contained in:
parent
325dc2a9d7
commit
7bccda807a
10 changed files with 228 additions and 145 deletions
|
|
@ -1,4 +1,6 @@
|
|||
import { Component } from '@angular/core';
|
||||
import { NbThemeService } from '@nebular/theme';
|
||||
|
||||
import { ElectricityService } from '../../../@core/data/electricity.service';
|
||||
|
||||
@Component({
|
||||
|
|
@ -13,7 +15,13 @@ export class ElectricityComponent {
|
|||
type: string = 'week';
|
||||
types = ['week', 'month', 'year'];
|
||||
|
||||
constructor(private electricityService: ElectricityService) {
|
||||
this.data = electricityService.getData();
|
||||
currentTheme: string;
|
||||
|
||||
constructor(private eService: ElectricityService, private themeService: NbThemeService) {
|
||||
this.data = eService.getData();
|
||||
|
||||
this.themeService.getJsTheme().subscribe(theme => {
|
||||
this.currentTheme = theme.name;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue