Format files with prettier.

This commit is contained in:
Spencer Ofwiti 2021-05-11 20:09:25 +03:00
parent 67b84a233b
commit 10beaea9be
5 changed files with 10 additions and 14 deletions

View File

@ -32,7 +32,7 @@ import { ServiceWorkerModule } from '@angular/service-worker';
serverLoggingUrl: `${environment.loggingUrl}/api/logs/`,
disableConsoleLogging: false,
}),
ServiceWorkerModule.register('ngsw-worker.js', { enabled: environment.production })
ServiceWorkerModule.register('ngsw-worker.js', { enabled: environment.production }),
],
providers: [
AuthGuard,

View File

@ -8,9 +8,8 @@ describe('NetworkStatusComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ NetworkStatusComponent ]
})
.compileComponents();
declarations: [NetworkStatusComponent],
}).compileComponents();
});
beforeEach(() => {

View File

@ -4,19 +4,16 @@ import {Component, OnInit, ChangeDetectionStrategy, ChangeDetectorRef} from '@an
selector: 'app-network-status',
templateUrl: './network-status.component.html',
styleUrls: ['./network-status.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class NetworkStatusComponent implements OnInit {
noInternetConnection: boolean = !navigator.onLine;
constructor(
private cdr: ChangeDetectorRef,
) {
constructor(private cdr: ChangeDetectorRef) {
this.handleNetworkChange();
}
ngOnInit(): void {
}
ngOnInit(): void {}
handleNetworkChange(): void {
setTimeout(() => {

View File

@ -23,7 +23,7 @@ import { NetworkStatusComponent } from './network-status/network-status.componen
TokenRatioPipe,
ErrorDialogComponent,
SafePipe,
NetworkStatusComponent
NetworkStatusComponent,
],
exports: [
TopbarComponent,
@ -32,7 +32,7 @@ import { NetworkStatusComponent } from './network-status/network-status.componen
MenuSelectionDirective,
TokenRatioPipe,
SafePipe,
NetworkStatusComponent
NetworkStatusComponent,
],
imports: [CommonModule, RouterModule, MatIconModule, MatDialogModule],
})